"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Deep-clones a JSON object or array.
 */
function deepClone(obj) {
    let clone = Array.isArray(obj) ? [] : {};
    for (let key of Object.keys(obj)) {
        let value = obj[key];
        if (typeof value === "object" && value) {
            value = deepClone(value);
        }
        clone[key] = value;
    }
    return clone;
}
exports.deepClone = deepClone;
//# sourceMappingURL=deep-clone.js.map