MCPcopy
hub / github.com/lodash/lodash / baseIsEqual

Function baseIsEqual

lodash.js:3314–3322  ·  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 - Uno

(value, other, bitmask, customizer, stack)

Source from the content-addressed store, hash-verified

3312 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3313 */
3314 function baseIsEqual(value, other, bitmask, customizer, stack) {
3315 if (value === other) {
3316 return true;
3317 }
3318 if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
3319 return value !== value && other !== other;
3320 }
3321 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
3322 }
3323
3324 /**
3325 * A specialized version of `baseIsEqual` for arrays and objects which performs

Callers 4

baseIsMatchFunction · 0.85
baseMatchesPropertyFunction · 0.85
isEqualFunction · 0.85
isEqualWithFunction · 0.85

Calls 2

isObjectLikeFunction · 0.85
baseIsEqualDeepFunction · 0.85

Tested by

no test coverage detected