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.60 node_modules/lodash/eq.js
immosquare-cleaner-0.1.59 node_modules/lodash/eq.js
immosquare-cleaner-0.1.58 node_modules/lodash/eq.js
immosquare-cleaner-0.1.57 node_modules/lodash/eq.js
immosquare-cleaner-0.1.56 node_modules/lodash/eq.js
immosquare-cleaner-0.1.55 node_modules/lodash/eq.js
immosquare-cleaner-0.1.54 node_modules/lodash/eq.js
immosquare-cleaner-0.1.53 node_modules/lodash/eq.js
immosquare-cleaner-0.1.52 node_modules/lodash/eq.js
trusty-cms-6.3.1 node_modules/lodash/eq.js
immosquare-cleaner-0.1.51 node_modules/lodash/eq.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/eq.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/eq.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/eq.js
immosquare-cleaner-0.1.50 node_modules/lodash/eq.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/eq.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/eq.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/eq.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/eq.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/eq.js