json-fs-query
    Preparing search index...

    Function indexHas

    • Whether any row of entity has property = value (compared by the field's declared type, as where does: a null equals nothing), answered from the index of a single-field key on the field: one file instead of every row.

      Undefined when there is no such index, or its file can't be read or parsed (a key added to a record by hand, a file edited badly): the caller then reads the rows, which are the truth, as these checks always did. A record with no rows has none, whatever its index says.

      Parameters

      • entity: string
      • property: string
      • value: any

      Returns Promise<boolean>