source:
node_modules/es-toolkit/dist/compat/predicate/matches.mjs
| Last change on this file was a762898, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 252 bytes | |
| Line | |
|---|---|
| 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.
