MCPcopy Index your code
hub / github.com/nodejs/node / mapMightHaveLoosePrim

Function mapMightHaveLoosePrim

lib/internal/util/comparisons.js:615–626  ·  view source on GitHub ↗
(a, b, prim, item2, memo)

Source from the content-addressed store, hash-verified

613}
614
615function mapMightHaveLoosePrim(a, b, prim, item2, memo) {
616 const altValue = findLooseMatchingPrimitives(prim);
617 if (altValue != null) {
618 return altValue;
619 }
620 const item1 = a.get(altValue);
621 if ((item1 === undefined && !a.has(altValue)) ||
622 !innerDeepEqual(item1, item2, kLoose, memo)) {
623 return false;
624 }
625 return !b.has(altValue) && innerDeepEqual(item1, item2, kLoose, memo);
626}
627
628function partialObjectSetEquiv(array, a, b, mode, memo) {
629 let aPos = 0;

Callers 1

mapEquivFunction · 0.85

Calls 4

innerDeepEqualFunction · 0.85
getMethod · 0.65
hasMethod · 0.65

Tested by

no test coverage detected