basant307/AI_Governance_Project
045
1/**2 * Performs a3 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)4 * comparison between two values to determine if they are equivalent.5 *6 * @static7 * @memberOf _8 * @since 4.0.09 * @category Lang10 * @param {*} value The value to compare.11 * @param {*} other The other value to compare.12 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.13 * @example14 *15 * var object = { 'a': 1 };16 * var other = { 'a': 1 };17 *18 * _.eq(object, object);19 * // => true20 *21 * _.eq(object, other);22 * // => false23 *24 * _.eq('a', 'a');25 * // => true26 *27 * _.eq('a', Object('a'));28 * // => false29 *30 * _.eq(NaN, NaN);31 * // => true32 */33function eq(value, other) {34 return value === other || (value !== value && other !== other);35}36 37module.exports = eq;38 