export function deepClone(arg: T): T { return JSON.parse(JSON.stringify(arg)); }