ArrayConstructor.combine method
ArrayConstructor › combine
Official
Combines an array of arrays into a single array.Signature:
combine(arrays: T[][]): T[]Parameters:
| Parameter | Type | Description |
|---|---|---|
| arrays | T[][] | The array of arrays to combine. |
Returns: T[] — A single array containing all elements from the input arrays.
Example:
console.log(Array.combine([[1, 2], [3, 4], [5, 6]])); // [1, 2, 3, 4, 5, 6]