"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function clone(thing) {
    if (Array.isArray(thing)) {
        var arr = [];
        for (var i = 0; i < thing.length; i++) {
            arr[i] = clone(thing[i]);
        }
        return arr;
    }
    if (thing && typeof thing === 'object') {
        var obj = {};
        for (var key in thing) {
            obj[key] = clone(thing[key]);
        }
        return obj;
    }
    return thing;
}
exports.default = clone;
//# sourceMappingURL=clone.js.map