Skip to content

concat

concat(array, source)

Concatenates source array to the end of array, returning a new array with the combined elements.

ts
concat([1, 2], [3, 4]); // [1, 2, 3, 4]
ts
pipe([1, 2], concat([3, 4])); // [1, 2, 3, 4]