(items: ReadonlyArray<ReadonlyArray<T>>)
| 281 | * Flattens an array of arrays into a single-dimensional array. |
| 282 | */ |
| 283 | export function flatten<T>(items: ReadonlyArray<ReadonlyArray<T>>): T[] { |
| 284 | let out: T[] = []; |
| 285 | for (const list of items) { |
| 286 | out = out.concat(list); |
| 287 | } |
| 288 | |
| 289 | return out; |
| 290 | } |
| 291 | |
| 292 | /** |
| 293 | * Picks the subset of keys from the object. |
no test coverage detected