mson-three/src/util/deep-clone.ts

3 lines
88 B
TypeScript

export const deepClone = <T = any>(input: T): T =>
JSON.parse(JSON.stringify(input));