String.prototype.splitbeginner'a,b,c'.split(',') // β ['a', 'b', 'c']
'hello'.split('') // β ['h', 'e', 'l', 'l', 'o']
'hi'.split() // β ['hi']Use split() to divide a string into an array of substrings at each occurrence of the separator.
Splitting on an empty string '' splits the string into individual characters.
Challenge: Implement toChars(str) that returns an array of characters.
toChars('hello') // β ['h', 'e', 'l', 'l', 'o']