source: frontend/node_modules/underscore/modules/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: 309 bytes
Line 
1import extendOwn from './extendOwn.js';
2import isMatch from './isMatch.js';
3
4// Returns a predicate for checking whether an object has a given set of
5// `key:value` pairs.
6export default function matcher(attrs) {
7 attrs = extendOwn({}, attrs);
8 return function(obj) {
9 return isMatch(obj, attrs);
10 };
11}
Note: See TracBrowser for help on using the repository browser.