|
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:
295 bytes
|
| Line | |
|---|
| 1 | var filter = require('./filter.js');
|
|---|
| 2 | var matcher = require('./matcher.js');
|
|---|
| 3 |
|
|---|
| 4 | // Convenience version of a common use case of `_.filter`: selecting only
|
|---|
| 5 | // objects containing specific `key:value` pairs.
|
|---|
| 6 | function where(obj, attrs) {
|
|---|
| 7 | return filter(obj, matcher(attrs));
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | module.exports = where;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.