shallowequal
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -17,3 +17,4 @@ 'use strict'; | ||
if (keysA.length !== keysB.length) { | ||
var len = keysA.length; | ||
if (len !== keysB.length) { | ||
return false; | ||
@@ -26,8 +27,7 @@ } | ||
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); | ||
var len = keysA.length; | ||
for (var i = 0; i < len; i++) { | ||
if (!bHasOwnProperty(keysA[i])) { | ||
var key = keysA[i]; | ||
if (!bHasOwnProperty(key)) { | ||
return false; | ||
} | ||
var key = keysA[i]; | ||
var valueA = objA[key]; | ||
@@ -34,0 +34,0 @@ var valueB = objB[key]; |
{ | ||
"name": "shallowequal", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Like lodash isEqual but for shallow equal", | ||
@@ -5,0 +5,0 @@ "main": "modules/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2806