es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
16 lines (11 loc) • 366 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const isMatch = require('./isMatch.js');
const cloneDeep = require('../../object/cloneDeep.js');
function matches(source) {
source = cloneDeep.cloneDeep(source);
return (target) => {
return isMatch.isMatch(target, source);
};
}
exports.matches = matches;