43a3a2b567a0cee529fceac518863bc73f47600c
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / isEqual.js
1 var baseIsEqual = require('./_baseIsEqual');
2
3 /**
4  * Performs a deep comparison between two values to determine if they are
5  * equivalent.
6  *
7  * **Note:** This method supports comparing arrays, array buffers, booleans,
8  * date objects, error objects, maps, numbers, `Object` objects, regexes,
9  * sets, strings, symbols, and typed arrays. `Object` objects are compared
10  * by their own, not inherited, enumerable properties. Functions and DOM
11  * nodes are **not** supported.
12  *
13  * @static
14  * @memberOf _
15  * @category Lang
16  * @param {*} value The value to compare.
17  * @param {*} other The other value to compare.
18  * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
19  * @example
20  *
21  * var object = { 'user': 'fred' };
22  * var other = { 'user': 'fred' };
23  *
24  * _.isEqual(object, other);
25  * // => true
26  *
27  * object === other;
28  * // => false
29  */
30 function isEqual(value, other) {
31   return baseIsEqual(value, other);
32 }
33
34 module.exports = isEqual;