Reputation: 31
Can you pass several options as the argument to .split? Trying to get or/and behavior.
.split
Upvotes: 1
Views: 234
Reputation: 4942
`Hello World!\nBye World!`.split(/ |\n/); // ["Hello", "World!", "Bye", "World!"]