Skip to content

join

Array.join(array, separator)

Joins all elements of array into a string, separated by the specified separator.

Example

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

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

pipe([1, 2, 3], Array.join(", ")); // "1, 2, 3"