Home > @i2analyze/notebook-sdk > data > IReadOnlyCollection > some
data.IReadOnlyCollection.some() method
Tests whether at least one object in the collection satisfies a predicate.
Signature:
some(predicate: (v: V) => boolean): boolean;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
predicate | (v: V) => boolean | A predicate function to apply to each object. |
Returns:
boolean
true
if the predicate is satisfied for at least one object; false
otherwise (or if the collection is empty).