Home > polyethylene > PolyAsyncIterable > join
Return the result of joining the elements of this
with the given glue
, or ','
if no glue is given.
Signature:
join(glue?: string): Promise<string>;
Parameter | Type | Description |
---|---|---|
glue | string | The string to use for joining the elements |
Returns:
Promise<string>
A promise to a string concatenating all elements of this
using the given glue
null
or undefined
elements are treated as empty strings.