ReadOnlyObservableCollection.every - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ReadOnlyObservableCollection<TItem> / every method
Checks whether all elements in the collection satisfy a given condition.
public every<TContext = void>(
predicate: (this: TContext, item: TItem, index: number, collection: this) => boolean,
thisArg?: TContext
): boolean
Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:293
.
-
TContext - The context type in which the callback is executed.
Default value:
void
.
-
predicate: (this:TContext, item:TItem, index:
number
, collection:this
) =>boolean
The callback performing the check for each item. -
thisArg: TContext
A value to use as context when checking items.
Returns: boolean
Returns true
if the provided predicate
is true
for all items; otherwise false
.