Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
da63a48ad7
commit
a517f2ff65
11
node_modules/underscore/modules/matcher.js
generated
vendored
Normal file
11
node_modules/underscore/modules/matcher.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import extendOwn from './extendOwn.js';
|
||||
import isMatch from './isMatch.js';
|
||||
|
||||
// Returns a predicate for checking whether an object has a given set of
|
||||
// `key:value` pairs.
|
||||
export default function matcher(attrs) {
|
||||
attrs = extendOwn({}, attrs);
|
||||
return function(obj) {
|
||||
return isMatch(obj, attrs);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user