CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_baseIsEqual.js29 linesDownload Raw Back to lodash
1var baseIsEqualDeep = require('./_baseIsEqualDeep'),2    isObjectLike = require('./isObjectLike');3 4/**5 * The base implementation of `_.isEqual` which supports partial comparisons6 * and tracks traversed objects.7 *8 * @private9 * @param {*} value The value to compare.10 * @param {*} other The other value to compare.11 * @param {boolean} bitmask The bitmask flags.12 *  1 - Unordered comparison13 *  2 - Partial comparison14 * @param {Function} [customizer] The function to customize comparisons.15 * @param {Object} [stack] Tracks traversed `value` and `other` objects.16 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.17 */18function baseIsEqual(value, other, bitmask, customizer, stack) {19  if (value === other) {20    return true;21  }22  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {23    return value !== value && other !== other;24  }25  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);26}27 28module.exports = baseIsEqual;29 
basant307/AI_Governance_Project · CoolFace