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

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

Fix frontend appearance

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