source: frontend/node_modules/underscore/cjs/matcher.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 327 bytes
Line 
1var extendOwn = require('./extendOwn.js');
2var isMatch = require('./isMatch.js');
3
4// Returns a predicate for checking whether an object has a given set of
5// `key:value` pairs.
6function matcher(attrs) {
7 attrs = extendOwn({}, attrs);
8 return function(obj) {
9 return isMatch(obj, attrs);
10 };
11}
12
13module.exports = matcher;
Note: See TracBrowser for help on using the repository browser.