Locate the index of the first element matching predicate, wrapped in an Option — none replaces the native -1 sentinel.
predicate
Option
none
-1
Dual API — works data-first or curried for use in pipe.
pipe
pipe( orders, Arrays.findIndex((o) => o.status === "shipped"), ) Copy
pipe( orders, Arrays.findIndex((o) => o.status === "shipped"), )
Locate the index of the first element matching
predicate, wrapped in anOption—nonereplaces the native-1sentinel.Dual API — works data-first or curried for use in
pipe.