xdash / split
Function: split()
split(
str
,separator
,limit
?):string
[]
Splits a string into an array of substrings based on a separator
Parameters
• str: string
string to split
• separator: string
| RegExp
separator to split the string by
• limit?: number
maximum number of substrings to return
Returns
string
[]
an array of substrings