source: frontend/node_modules/underscore/amd/where.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: 289 bytes
Line 
1define(['./filter', './matcher'], function (filter, matcher) {
2
3 // Convenience version of a common use case of `_.filter`: selecting only
4 // objects containing specific `key:value` pairs.
5 function where(obj, attrs) {
6 return filter(obj, matcher(attrs));
7 }
8
9 return where;
10
11});
Note: See TracBrowser for help on using the repository browser.