You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
355 B

"use strict";
exports.__esModule = true;
exports.deepClone = deepClone;
var _deepAssign = require("./deep-assign");
function deepClone(obj) {
if (Array.isArray(obj)) {
return obj.map(function (item) {
return deepClone(item);
});
}
if (typeof obj === 'object') {
return (0, _deepAssign.deepAssign)({}, obj);
}
return obj;
}