GoodDB
    Preparing search index...
    • Get all the values that end with a key

      Parameters

      • this: GoodDB
      • key: string

        The key to check if it ends with the value

      • Optionaloptions: methodOptions

        The options to use

      Returns any

      A promise if the driver is async, otherwise a value

      const db = new GoodDB(new JSONDriver({
      path: './database.json'
      }));
      db.endsWith('key');
      const db = new GoodDB(new MongoDBDriver({
      uri: "..."
      }));
      await db.connect();
      await db.endsWith('key');