Bump to v3.9.0.

This commit is contained in:
jdalton
2015-05-17 22:50:59 -07:00
parent d7b2bedafc
commit 30daf83737
89 changed files with 527 additions and 567 deletions

View File

@@ -1,6 +1,5 @@
import baseIsEqual from '../internal/baseIsEqual';
import bindCallback from '../internal/bindCallback';
import isStrictComparable from '../internal/isStrictComparable';
/**
* Performs a deep comparison between two values to determine if they are
@@ -17,6 +16,7 @@ import isStrictComparable from '../internal/isStrictComparable';
*
* @static
* @memberOf _
* @alias eq
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
@@ -46,12 +46,9 @@ import isStrictComparable from '../internal/isStrictComparable';
* // => true
*/
function isEqual(value, other, customizer, thisArg) {
customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 3);
if (!customizer && isStrictComparable(value) && isStrictComparable(other)) {
return value === other;
}
customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined;
var result = customizer ? customizer(value, other) : undefined;
return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
}
export default isEqual;