export function deepCopy(obj: T) { return JSON.parse(JSON.stringify(obj)) as T; }