_.find()
_.find(collection, [predicate=_.identity], [fromIndex=0])
Iterates over elements of collection, returning the first element predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).
Arguments
collection (Array|Object)
: The collection to inspect.
[iteratee=_.identity] (Function)
: The function invoked per iteration.
[fromIndex=0] (number)
: The index to search from.
Returns
(*)
: Returns the matched element, else undefined.