Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
15
node_modules/underscore/amd/findKey.js
generated
vendored
Normal file
15
node_modules/underscore/amd/findKey.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
define(['./_cb', './keys'], function (_cb, keys) {
|
||||
|
||||
// Returns the first key on an object that passes a truth test.
|
||||
function findKey(obj, predicate, context) {
|
||||
predicate = _cb(predicate, context);
|
||||
var _keys = keys(obj), key;
|
||||
for (var i = 0, length = _keys.length; i < length; i++) {
|
||||
key = _keys[i];
|
||||
if (predicate(obj[key], key, obj)) return key;
|
||||
}
|
||||
}
|
||||
|
||||
return findKey;
|
||||
|
||||
});
|
Reference in New Issue
Block a user