Skip to content

Files

Latest commit

5be1187 · Nov 23, 2017

History

History
10 lines (8 loc) · 621 Bytes

File metadata and controls

10 lines (8 loc) · 621 Bytes

split

The split method is the opposite of join. While join combines the elements of an array into a string, split divides a string into an array. Like join, split takes an optional argument: the delimiter. The delimiter is a string along which split divides the receiver string. Whatever string you use as the delimiter will be omitted from the returned array. By default, the delimiter is an empty space (' '). The split method does not modify the original string.

<iframe frameborder="0" width="100%" height="500px" src="https://repl.it/@AppAcademy/WeepyInfatuatedPorcupine?lite=true"></iframe>