Finds the first element in an array that passes a callback test. Equivalent to _.find().
Installation
npm install first-match
Usage
first(array, [iterator], [context])
. If an iterator is not passed, the method
will just return the first truthy value in the array. The context defaults to
the array being evaluated.
var first =array = 0 1 2 3 4 5// 1// 4// 1// 5