Skip to content

Documentation / @ripl/utilities / setFind

Function: setFind() ​

setFind<TValue>(input, predicate): TValue | undefined

Defined in: collection.ts:229

Searches a Set for the first value that satisfies the predicate.

Type Parameters ​

Type Parameter
TValue

Parameters ​

ParameterType
inputSet<TValue>
predicateCollectionIteratee<TValue, boolean>

Returns ​

TValue | undefined