Skip to main content

ArrayComparator<ItemType>

An efficient comparator for WatchedQuery created with Query#watch. This has the ability to determine if a query result has changes without necessarily processing all items in the result.

Type Parameters

Type Parameter
ItemType

Implements

Constructors

Constructor

new ArrayComparator<ItemType>(options): ArrayComparator<ItemType>;

Parameters

ParameterType
optionsArrayComparatorOptions<ItemType>

Returns

ArrayComparator<ItemType>

Methods

checkEquality()

checkEquality(current, previous): boolean;

Parameters

ParameterType
currentItemType[]
previousItemType[]

Returns

boolean

Implementation of

WatchedQueryComparator.checkEquality