UNPKG

@antv/layout

Version:
50 lines (45 loc) 984 B
/** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ var eq_1; var hasRequiredEq; function requireEq () { if (hasRequiredEq) return eq_1; hasRequiredEq = 1; function eq(value, other) { return value === other || (value !== value && other !== other); } eq_1 = eq; return eq_1; } export { requireEq as __require }; //# sourceMappingURL=eq.js.map