@mantlebee/ts-data
    Preparing search index...

    Function itemMatchesFilter

    • Tells whether an item matches a single filter. Both the value of the field and the value of the filter go through the comparer of the options (see toComparableValue) before being compared:

      • equal, notEqual, in, notIn: by === on the comparables;
      • equalInsensitive: like equal, ignoring the case whatever the options;
      • greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual: by < / >, never matching an unset value on either side;
      • range: between min and max, each excluded when exclude is true, open when null; never matching an unset value;
      • contains, notContains: substring of a string, membership of a list;
      • startsWith, endsWith: on the text of the values.

      With options.nullSemantics "sql", an unset field never matches notEqual, notIn nor notContains; see InMemoryNullSemantics.

      Type Parameters

      • TItem = any

      Parameters

      Returns boolean

      true if the field of the item satisfies the filter.

      an Error when the operator is not a FilterOperators member.