Comparing version 0.1.3 to 0.1.4
@@ -6,4 +6,7 @@ /* jshints esversion: 5 */ | ||
var MAP_SUPPORT = typeof Map !== 'undefined'; | ||
var SET_SUPPORT = typeof Set !== 'undefined'; | ||
var MAP_SUPPORT = typeof Map !== 'undefined' && | ||
Map.prototype.keys && | ||
Map.prototype.values; | ||
var SET_SUPPORT = typeof Set !== 'undefined' && | ||
Map.prototype.values; | ||
var ARRAYBUFFER_SUPPORT = typeof ArrayBuffer !== 'undefined'; | ||
@@ -125,8 +128,5 @@ var DATAVIEW_SUPPORT = typeof DataView !== 'undefined'; | ||
} | ||
} else if ((MAP_SUPPORT && // Map | ||
a instanceof Map && a.keys && a.values && | ||
b instanceof Map && b.keys && b.values) || | ||
(SET_SUPPORT && // Set | ||
a instanceof Set && a.values && | ||
b instanceof Set && b.values)) | ||
} else if ( | ||
(MAP_SUPPORT && a instanceof Map && b instanceof Map) || // Map | ||
(SET_SUPPORT && a instanceof Set && b instanceof Set)) // Set | ||
{ | ||
@@ -239,2 +239,2 @@ if (a.size !== b.size) { // Check size | ||
})(this); | ||
})(this); |
{ | ||
"name": "esequal", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "EcmaScript Equal - small and very robust deep comparison for EcmaScript 5.1 and 6 (Browser and Node support)", | ||
@@ -5,0 +5,0 @@ "main": "esequal.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
110465
9
1699