import { Shallow } from './' export function flatMap( this: Shallow[], fn: (value: Shallow, index: number, array: Shallow[]) => U ): U[] { return this.map(fn).flatten() }