Home > @i2analyze/notebook-sdk > data > IReadOnlyCollection > filter
data.IReadOnlyCollection.filter() method
Returns a new collection with all objects that satisfy a predicate.
Signature:
filter(predicate: (v: V) => boolean): IReadOnlyCollection<V>;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
predicate | (v: V) => boolean | A predicate function to apply to each object. |
Returns:
The new collection.