effect-io-ai

Package: effect
Module: Array

Array.join

Joins the elements together with “sep” in the middle.

Example

import { Array } from "effect"

const strings = ["a", "b", "c"]
const joined = Array.join(strings, "-")
console.log(joined) // "a-b-c"

Signature

declare const join: { (sep: string): (self: Iterable<string>) => string; (self: Iterable<string>, sep: string): string; }

Source

Since v2.0.0