String.split

String.split

String.split

Function

Split a string by delimiter.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
separatorAnyNo''separator, it will be converted into a string first when called.

Return value

TypeDescription
ArrayReturns the split string array.

Example

Notes

  • Split by characters when the delimiter is an empty string.