Comparing version 1.0.0 to 1.0.1
@@ -497,7 +497,3 @@ 'use strict'; | ||
if (!isCrio(item)) { | ||
if ((0, _utils.isArray)(item)) { | ||
itemValue = crioArray(item); | ||
} else if ((0, _utils.isObject)(item)) { | ||
itemValue = crioObject(item); | ||
} | ||
itemValue = crio(item); | ||
} | ||
@@ -520,7 +516,3 @@ | ||
if (!isCrio(itemValue)) { | ||
if ((0, _utils.isArray)(itemValue)) { | ||
itemValue = crioArray(itemValue); | ||
} else if ((0, _utils.isObject)(itemValue)) { | ||
itemValue = crioObject(itemValue); | ||
} | ||
itemValue = crio(itemValue); | ||
} | ||
@@ -559,2 +551,10 @@ | ||
crio.array.from = function () { | ||
for (var _len9 = arguments.length, args = Array(_len9), _key9 = 0; _key9 < _len9; _key9++) { | ||
args[_key9] = arguments[_key9]; | ||
} | ||
return crioArray(args); | ||
}; | ||
crio.object = function () { | ||
@@ -561,0 +561,0 @@ var object = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; |
@@ -5,2 +5,4 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -51,5 +53,16 @@ value: true | ||
for (var index = 0; index < object1PropertiesLength; index++) { | ||
if (object1Properties[index] !== object2Properties[index]) { | ||
var object1Value = object1[object1Properties[index]]; | ||
var object2Value = object2[object2Properties[index]]; | ||
if (object1Value !== object2Value) { | ||
return false; | ||
} | ||
if ((typeof object1Value === 'undefined' ? 'undefined' : _typeof(object1Value)) !== (typeof object2Value === 'undefined' ? 'undefined' : _typeof(object2Value))) { | ||
return false; | ||
} | ||
if (isArray(object1Value) || isObject(object1Value)) { | ||
return isEqual(object1Value, object2Value); | ||
} | ||
} | ||
@@ -56,0 +69,0 @@ |
@@ -48,3 +48,3 @@ { | ||
}, | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
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
37167
8
546