Skip to content

Documentation / @ripl/utilities / setFind

Function: setFind()

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

Defined in: packages/utilities/src/collection.ts:237

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