function flatMap flatMap<T, U>(fn: (item: T) => U[]) Curried flatMap Type Parameters T U Parameters fn: (item: T) => U[] Return Type