Bump to v4.0.1.

This commit is contained in:
John-David Dalton
2016-01-24 18:06:10 -08:00
parent 8c26e6fd4c
commit 629caa8340
63 changed files with 350 additions and 269 deletions

View File

@@ -4,8 +4,7 @@ define(['./baseHas', '../keys'], function(baseHas, keys) {
var undefined;
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
var PARTIAL_COMPARE_FLAG = 2;
/**
* A specialized version of `baseIsEqualDeep` for objects with support for
@@ -22,7 +21,6 @@ define(['./baseHas', '../keys'], function(baseHas, keys) {
*/
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
isUnordered = bitmask & UNORDERED_COMPARE_FLAG,
objProps = keys(object),
objLength = objProps.length,
othProps = keys(other),
@@ -34,8 +32,7 @@ define(['./baseHas', '../keys'], function(baseHas, keys) {
var index = objLength;
while (index--) {
var key = objProps[index];
if (!(isPartial ? key in other : baseHas(other, key)) ||
!(isUnordered || key == othProps[index])) {
if (!(isPartial ? key in other : baseHas(other, key))) {
return false;
}
}