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

Function isEnumerableOrIdentical

lib/internal/util/comparisons.js:232–236  ·  view source on GitHub ↗
(val1, val2, prop, mode, memos)

Source from the content-addressed store, hash-verified

230}
231
232function isEnumerableOrIdentical(val1, val2, prop, mode, memos) {
233 return hasEnumerable(val2, prop) || // This is handled by Object.keys()
234 (mode === kPartial && (val2[prop] === undefined || (prop === 'message' && val2[prop] === ''))) ||
235 innerDeepEqual(val1[prop], val2[prop], mode, memos);
236}
237
238function innerDeepEqual(val1, val2, mode, memos) {
239 // All identical values are equivalent, as determined by ===.

Callers 1

objectComparisonStartFunction · 0.85

Calls 1

innerDeepEqualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…