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