|
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 | |
|---|
| 1 | var extendOwn = require('./extendOwn.js');
|
|---|
| 2 | var isMatch = require('./isMatch.js');
|
|---|
| 3 |
|
|---|
| 4 | // Returns a predicate for checking whether an object has a given set of
|
|---|
| 5 | // `key:value` pairs.
|
|---|
| 6 | function matcher(attrs) {
|
|---|
| 7 | attrs = extendOwn({}, attrs);
|
|---|
| 8 | return function(obj) {
|
|---|
| 9 | return isMatch(obj, attrs);
|
|---|
| 10 | };
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | module.exports = matcher;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.