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:
12
node_modules/underscore/cjs/find.js
generated
vendored
Normal file
12
node_modules/underscore/cjs/find.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
var _isArrayLike = require('./_isArrayLike.js');
|
||||
var findIndex = require('./findIndex.js');
|
||||
var findKey = require('./findKey.js');
|
||||
|
||||
// Return the first value which passes a truth test.
|
||||
function find(obj, predicate, context) {
|
||||
var keyFinder = _isArrayLike(obj) ? findIndex : findKey;
|
||||
var key = keyFinder(obj, predicate, context);
|
||||
if (key !== void 0 && key !== -1) return obj[key];
|
||||
}
|
||||
|
||||
module.exports = find;
|
Reference in New Issue
Block a user