0.0.1 • Published 9 years ago
@nathanfaucett/array-filter_one v0.0.1
array-filter_one
returns first element that pass the test implemented by the provided function.
var arrayFilterOne = require("@nathanfaucett/array-filter_one");
var four = arrayFilterOne([2, 4, 6], function isFour(value, index, array) {
return value === 4;
});
0.0.1
9 years ago