A tiny, faster alternative to native
Array.prototype.findIndex
:warning: Unlike native, @arr/findindex does not support the optional thisArg parameter!
$ npm install --save @arr/findindex
import findIndex from '@arr/findindex';
findIndex([12, 5, 8, 130, 44], val => val > 15);
//=> 3
Type: Array
The array to iterate upon.
Type: Function
Function to test for each element, taking three arguments:
findIndex was called upon.MIT © Luke Edwards