split / join
Splits text into an array / joins an array into text.
Syntax
text.split(separator) · arr.join(separator)
Description
split breaks into parts (arr); join does the reverse.
Example
Loading editor…
Expected output
["a", "b", "c"] x-y-z
When to use?
CSV parsing, arr↔text.