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:
17
node_modules/underscore/amd/isMatch.js
generated
vendored
Normal file
17
node_modules/underscore/amd/isMatch.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
define(['./keys'], function (keys) {
|
||||
|
||||
// Returns whether an object has a given set of `key:value` pairs.
|
||||
function isMatch(object, attrs) {
|
||||
var _keys = keys(attrs), length = _keys.length;
|
||||
if (object == null) return !length;
|
||||
var obj = Object(object);
|
||||
for (var i = 0; i < length; i++) {
|
||||
var key = _keys[i];
|
||||
if (attrs[key] !== obj[key] || !(key in obj)) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return isMatch;
|
||||
|
||||
});
|
Reference in New Issue
Block a user