(obj: T)
| 24 | * Note that circular references will throw Error |
| 25 | */ |
| 26 | export function fastCloneDeep<T>(obj: T): T { |
| 27 | if (obj == null) { |
| 28 | return obj; |
| 29 | } |
| 30 | if (typeof obj !== 'object') { |
| 31 | return obj; |
| 32 | } |
| 33 | return JSON.parse(JSON.stringify(obj)); |
| 34 | } |
| 35 | |
| 36 | // /** |
| 37 | // * @param gzipBase64Str must be base64 encoded |
no test coverage detected