(...args: T[][])
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. |
| 3 | export function concat<T>(...args: T[][]) { |
| 4 | return args.reduce((p, c) => c ? p.concat(c) : p, []); |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Returns array with items which are truthy. |