Specifies the character(s) to use for separating the string. The separator is treated as a string or a regular expression. **If separator is omitted, the array returned contains one element consisting of the entire string**. If separator is an empty string, str is converted to an array of characters.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
Syntax
str.split([separator][, limit])
Parameters
separator