source: imaps-frontend/node_modules/lodash-es/_baseIsEqual.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1017 bytes
RevLine 
[d565449]1import baseIsEqualDeep from './_baseIsEqualDeep.js';
2import isObjectLike from './isObjectLike.js';
3
4/**
5 * The base implementation of `_.isEqual` which supports partial comparisons
6 * and tracks traversed objects.
7 *
8 * @private
9 * @param {*} value The value to compare.
10 * @param {*} other The other value to compare.
11 * @param {boolean} bitmask The bitmask flags.
12 * 1 - Unordered comparison
13 * 2 - Partial comparison
14 * @param {Function} [customizer] The function to customize comparisons.
15 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
16 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
17 */
18function baseIsEqual(value, other, bitmask, customizer, stack) {
19 if (value === other) {
20 return true;
21 }
22 if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
23 return value !== value && other !== other;
24 }
25 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
26}
27
28export default baseIsEqual;
Note: See TracBrowser for help on using the repository browser.