joinStrings()function

joinStrings(strs: Iterable<string> & NotString, joiner = ""): string
ParamType
strsIterable<string> & NotString
The iterable of strings to join (must not be a bare string). required
joinerunknown
The separator to insert between strings (defaults to ""). Defaults to ""
Return
string
The joined string.
Throws
RequiredError
If strs is not a valid array of strings.

Concatenate an iterable set of strings together.

Examples

joinStrings(["a", "b"], "-") // "a-b"