0.0.2 • Published 9 years ago
@nathanfaucett/object-filter_one v0.0.2
object-filter_one
returns first element that pass the test implemented by the provided function.
var objectFilterOne = require("@nathanfaucett/object-filter_one");
objectFilterOne({
a: "a",
b: "b",
c: "c"
},
function(value, key) {
return key === "b";
}
) === "b";