(array: T[])
| 26 | } |
| 27 | |
| 28 | export function distinct<T extends string | number | boolean>(array: T[]): T[] { |
| 29 | return [...new Set(array)]; |
| 30 | } |
| 31 | |
| 32 | export function deepClone<T>(obj: T): T { |
| 33 | return obj == null || typeof obj !== 'object' ? obj : structuredClone(obj); |
no outgoing calls
no test coverage detected