Split
Arguments
Explanation
Examples
"hello world".split(" ") == ["hello", "world"]
"hello world".split() == ["hello", "world"]
"Hello, World".split(/[^A-Za-z]/) == ["Hello", "World"]Last updated
Was this helpful?
"hello world".split(" ") == ["hello", "world"]
"hello world".split() == ["hello", "world"]
"Hello, World".split(/[^A-Za-z]/) == ["Hello", "World"]Last updated
Was this helpful?
Was this helpful?