Home > @i2analyze/notebook-sdk > data > IReadOnlyCollection > find
data.IReadOnlyCollection.find() method
Returns the first object in the collection that satisfies a predicate.
Signature:
find(predicate: (v: V) => boolean): V | undefined;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
predicate | (v: V) => boolean | A predicate function to apply to each object. |
Returns:
V | undefined
The found object, or undefined
if no object was found.