Skip to content

concat

Array.concat(array, source)

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

Example

ts
import { Array } from "@monstermann/array";

Array.concat([1, 2], [3, 4]); // [1, 2, 3, 4]
ts
import { Array } from "@monstermann/array";

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