You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							1019 B
						
					
					
				
			
		
		
	
	
							28 lines
						
					
					
						
							1019 B
						
					
					
				var baseIsEqualDeep = require('./_baseIsEqualDeep'), | 
						|
    isObjectLike = require('./isObjectLike'); | 
						|
 | 
						|
/** | 
						|
 * The base implementation of `_.isEqual` which supports partial comparisons | 
						|
 * and tracks traversed objects. | 
						|
 * | 
						|
 * @private | 
						|
 * @param {*} value The value to compare. | 
						|
 * @param {*} other The other value to compare. | 
						|
 * @param {boolean} bitmask The bitmask flags. | 
						|
 *  1 - Unordered comparison | 
						|
 *  2 - Partial comparison | 
						|
 * @param {Function} [customizer] The function to customize comparisons. | 
						|
 * @param {Object} [stack] Tracks traversed `value` and `other` objects. | 
						|
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`. | 
						|
 */ | 
						|
function baseIsEqual(value, other, bitmask, customizer, stack) { | 
						|
  if (value === other) { | 
						|
    return true; | 
						|
  } | 
						|
  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { | 
						|
    return value !== value && other !== other; | 
						|
  } | 
						|
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); | 
						|
} | 
						|
 | 
						|
module.exports = baseIsEqual;
 | 
						|
 |