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
clapton-0.0.1 lib/clapton/javascripts/node_modules/lodash/eq.js
immosquare-cleaner-0.1.47 node_modules/lodash/eq.js
immosquare-cleaner-0.1.46 node_modules/lodash/eq.js
immosquare-cleaner-0.1.45 node_modules/lodash/eq.js
immosquare-cleaner-0.1.44 node_modules/lodash/eq.js
boring_generators-0.14.0 tmp/templates/app_template/node_modules/lodash/eq.js
immosquare-cleaner-0.1.43 node_modules/lodash/eq.js
immosquare-cleaner-0.1.42 node_modules/lodash/eq.js
immosquare-cleaner-0.1.41 node_modules/lodash/eq.js
immosquare-cleaner-0.1.40 node_modules/lodash/eq.js
sumomo-0.10.8 data/sumomo/api_modules/node_modules/lodash/eq.js
immosquare-cleaner-0.1.39 node_modules/lodash/eq.js
immosquare-cleaner-0.1.38 node_modules/lodash/eq.js
optimacms-0.1.61 spec/dummy/node_modules/lodash/eq.js
boring_generators-0.13.0 tmp/templates/app_template/node_modules/lodash/eq.js
immosquare-cleaner-0.1.32 node_modules/lodash/eq.js
immosquare-cleaner-0.1.31 node_modules/lodash/eq.js
immosquare-cleaner-0.1.30 node_modules/lodash/eq.js
immosquare-cleaner-0.1.29 node_modules/lodash/eq.js
immosquare-cleaner-0.1.28 node_modules/lodash/eq.js