solidity-docgen
Version:
Documentation generator for Solidity smart contracts.
11 lines • 426 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.clone = void 0;
/**
* Deep cloning good enough for simple objects like solc output. Types are not
* sound because the function may lose information: non-enumerable properties,
* symbols, undefined values, prototypes, etc.
*/
const clone = (obj) => JSON.parse(JSON.stringify(obj));
exports.clone = clone;
//# sourceMappingURL=clone.js.map
;