(array: T[])
| 9 | export type PromiseOr<T> = Promise<T> | T; |
| 10 | |
| 11 | export function uniq<T>(array: T[]): T[] { |
| 12 | return [...new Set(array)]; |
| 13 | } |
| 14 | |
| 15 | export function flatMap<T1, T2>(input: readonly T1[], f: (input: T1) => readonly T2[]): T2[] { |
| 16 | return input.reduce((acc, x) => acc.concat(f(x)), [] as T2[]); |
no outgoing calls
no test coverage detected