Skip to content

Function: find()

find<T, S>(source, predicate): S | undefined

Same semantics as Array.prototype.find, over a single Container. Consumes elements until a match. A type guard narrows the return type.

T

S

Source<T>

(value, index) => value is S

S | undefined

find<T>(source, predicate): T | undefined

Same semantics as Array.prototype.find, over a single Container. Consumes elements until a match. A type guard narrows the return type.

T

Source<T>

(value, index) => boolean

T | undefined