joinStrings()function
joinStrings(strs: Iterable<string> & NotString, joiner = ""): string
| Param | Type | |
|---|---|---|
strs | Iterable<string> & NotString | The iterable of strings to join (must not be a bare string). required |
joiner | unknown | 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"