I want to split a string to single characters. So I do:
"abcd".split("");
But this yields:
["", "a", "b", "c", "d"]
The first empty string is not something I'm used to when doing the same in other languages (e.g. Ruby). What is the logic behind it?