(input: readonly T1[], f: (input: T1) => readonly T2[])
| 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[]); |
| 17 | } |
| 18 | |
| 19 | |
| 20 | export function filenameSafe(input: string) { |
no outgoing calls
no test coverage detected