Converts a value of an item, or of a filter, into the primitive the
in-memory delegates compare with ===, < and >:
null and undefined become null (an unset value);
numbers, booleans and the other primitives stay as they are;
strings are lower-cased, unless caseSensitive is true;
a Date becomes its getTime();
any other object becomes its valueOf() when that returns a primitive
(so the value objects of the consumer plug in without being a dependency
of the package), converted with the same rules; otherwise it stays as it
is and is compared by reference.
Override it per field with InMemoryQueryItemsReaderOptions.toComparable.
Converts a value of an item, or of a filter, into the primitive the in-memory delegates compare with
===,<and>:nullandundefinedbecomenull(an unset value);caseSensitiveistrue;Datebecomes itsgetTime();valueOf()when that returns a primitive (so the value objects of the consumer plug in without being a dependency of the package), converted with the same rules; otherwise it stays as it is and is compared by reference. Override it per field with InMemoryQueryItemsReaderOptions.toComparable.