Security update for permissions_by_term
[yaffs-website] / node_modules / uncss / node_modules / lodash / eq.js
1 /**
2  * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
3  * comparison between two values to determine if they are equivalent.
4  *
5  * @static
6  * @memberOf _
7  * @category Lang
8  * @param {*} value The value to compare.
9  * @param {*} other The other value to compare.
10  * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
11  * @example
12  *
13  * var object = { 'user': 'fred' };
14  * var other = { 'user': 'fred' };
15  *
16  * _.eq(object, object);
17  * // => true
18  *
19  * _.eq(object, other);
20  * // => false
21  *
22  * _.eq('a', 'a');
23  * // => true
24  *
25  * _.eq('a', Object('a'));
26  * // => false
27  *
28  * _.eq(NaN, NaN);
29  * // => true
30  */
31 function eq(value, other) {
32   return value === other || (value !== value && other !== other);
33 }
34
35 module.exports = eq;