Returns first item from iterable it that matches predicate f
it
f
find([1, 2, 3, 4], e => e > 2);// Yields: 3 Copy
find([1, 2, 3, 4], e => e > 2);// Yields: 3
When using async iterables, f can be async as well.
Returns first item from iterable
itthat matches predicatefWhen using async iterables,
fcan be async as well.Param: it
Param: f
Returns