MCPcopy Index your code
hub / github.com/jashkenas/underscore / matcher

Function matcher

underscore-node-f.cjs:719–724  ·  view source on GitHub ↗
(attrs)

Source from the content-addressed store, hash-verified

717// Returns a predicate for checking whether an object has a given set of
718// `key:value` pairs.
719function matcher(attrs) {
720 attrs = extendOwn({}, attrs);
721 return function(obj) {
722 return isMatch(obj, attrs);
723 };
724}
725
726// Creates a function that, when passed an object, will traverse that object’s
727// properties down the given `path`, specified as an array of keys or indices.

Callers 3

baseIterateeFunction · 0.70
findWhereFunction · 0.70
whereFunction · 0.70

Calls 1

isMatchFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…