Optionaltrim: booleanIf true, entries will be trimmed for whitespace after splitting.
Optionallimit: numberIf not given or < 0, the string will be split on every
occurrence of separator. Otherwise, it will be split on
the first limit number of occurrences of separator.
Similar to String.prototype.split except that
limitis interpreted as the maximum number of splits, and the returned array containslimit + 1entries. Also iflimitis given and the number of substrings is greater than the limit, all the remaining substrings are present in the final substring.Example