Lodash.findIndex

This method is like _.find except that it returns the index of the first element predicate returns truthy for instead of the element itself.

struct Lodash
nothrow @trusted @safe ref
findIndex
(
T = Any
U = Any
)
(
auto ref T predicate = T.init
,
auto ref U fromIndex = U.init
)

Return Value

Type: auto ref

- Lodash chained on (number): the index of the found element, else -1.

Meta