MCPcopy
hub / github.com/tdewolff/minify / baseIsEqual

Function baseIsEqual

_benchmarks/sample_victory.js:13660–13668  ·  view source on GitHub ↗

* The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {boolean} bitmask The bitmask flags. * 1 - Unordered comparison * 2 - Pa

(value, other, bitmask, customizer, stack)

Source from the content-addressed store, hash-verified

13658 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
13659 */
13660function baseIsEqual(value, other, bitmask, customizer, stack) {
13661 if (value === other) {
13662 return true;
13663 }
13664 if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
13665 return value !== value && other !== other;
13666 }
13667 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
13668}
13669
13670module.exports = baseIsEqual;
13671

Callers 3

baseIsMatchFunction · 0.70
baseMatchesPropertyFunction · 0.70
isEqualFunction · 0.70

Calls 2

isObjectLikeFunction · 0.70
baseIsEqualDeepFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…