xdash API Reference / split
Function: split()
split(
str,separator,limit?):string[]
Defined in: src/string.ts:251
Splits a string into an array of substrings based on a separator
Parameters
str
string
string to split
separator
separator to split the string by
string | RegExp
limit?
number
maximum number of substrings to return
Returns
string[]
an array of substrings