join (Functional Programming) es-toolkit
Creates a function that joins array values into a string. Use it with pipe.
Info
This helper is specific to es-toolkit/fp. Use it when you want this operation as part of a pipe pipeline.
Usage
join converts the piped array to a string by joining its values with separator. When separator is omitted, it uses a comma.
Parameters
separatorstring, optionalrequired
The string inserted between values. Defaults to ,.
Returns
A function that maps a readonly T[] to a joined string.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.