export function flatten(arrays: T[][]): T[] { return [].concat(...arrays); }