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:
13
node_modules/underscore/modules/isMatch.js
generated
vendored
Normal file
13
node_modules/underscore/modules/isMatch.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import keys from './keys.js';
|
||||
|
||||
// Returns whether an object has a given set of `key:value` pairs.
|
||||
export default 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;
|
||||
}
|
Reference in New Issue
Block a user