|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
252 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | import { isMatch } from './isMatch.mjs';
|
|---|
| 2 | import { cloneDeep } from '../../object/cloneDeep.mjs';
|
|---|
| 3 |
|
|---|
| 4 | function matches(source) {
|
|---|
| 5 | source = cloneDeep(source);
|
|---|
| 6 | return (target) => {
|
|---|
| 7 | return isMatch(target, source);
|
|---|
| 8 | };
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | export { matches };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.