Files
setup-helm/node_modules/underscore/modules/matcher.js
github-actions[bot] 20d2b4f98d v3 new release (#80)
2022-06-27 14:17:15 -04:00

12 lines
309 B
JavaScript

import extendOwn from './extendOwn.js';
import isMatch from './isMatch.js';
// Returns a predicate for checking whether an object has a given set of
// `key:value` pairs.
export default function matcher(attrs) {
attrs = extendOwn({}, attrs);
return function(obj) {
return isMatch(obj, attrs);
};
}