UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (9 loc) 252 B
import { isMatch } from './isMatch.mjs'; import { cloneDeep } from '../../object/cloneDeep.mjs'; function matches(source) { source = cloneDeep(source); return (target) => { return isMatch(target, source); }; } export { matches };