MCPcopy Create free account
hub / github.com/parse-community/parse-server / isKeyMatch

Method isKeyMatch

src/Utils.js:409–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 static objectContainsKeyValue(obj, key, value) {
408 const isMatch = (a, b) => (typeof a === 'string' && new RegExp(b).test(a)) || a === b;
409 const isKeyMatch = k => isMatch(k, key);
410 const isValueMatch = v => isMatch(v, value);
411 const stack = [obj];
412 const seen = new WeakSet();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected