Sha256: 05eddf24818a442d922f08fde9d9a9ac1edcc2e613ddfd0dc1aea5f99d40e3b8

Contents?: true

Size: 799 Bytes

Versions: 274

Compression:

Stored size: 799 Bytes

Contents

/**
 * 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
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

module.exports = eq;

Version data entries

274 entries across 272 versions & 30 rubygems

Version Path
immosquare-cleaner-0.1.27 node_modules/lodash/eq.js
immosquare-cleaner-0.1.26 node_modules/lodash/eq.js
immosquare-cleaner-0.1.25 node_modules/lodash/eq.js
immosquare-cleaner-0.1.24 node_modules/lodash/eq.js
immosquare-cleaner-0.1.23 node_modules/lodash/eq.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.10.1 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/lodash/eq.js
reed_sdk-1.0.1 node_modules/lodash/eq.js
reed_sdk-1.0.0 node_modules/lodash/eq.js
boring_generators-0.12.0 tmp/templates/app_template/node_modules/lodash/eq.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/lodash/eq.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/lodash/eq.js
disco_app-0.18.0 test/dummy/node_modules/lodash/eq.js