|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
366 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const isMatch = require('./isMatch.js');
|
|---|
| 6 | const cloneDeep = require('../../object/cloneDeep.js');
|
|---|
| 7 |
|
|---|
| 8 | function matches(source) {
|
|---|
| 9 | source = cloneDeep.cloneDeep(source);
|
|---|
| 10 | return (target) => {
|
|---|
| 11 | return isMatch.isMatch(target, source);
|
|---|
| 12 | };
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | exports.matches = matches;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.