str_split
Splits string into list by separator.
str_split(
str,
[separator=" "]
) -> LIST
Splits string into list by separator.
Syntaxe
var result = str_split("Hello World"); // ["Hello", "World"]\nvar result2 = str_split("a-b-c", "-"); // ["a", "b", "c"]
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
str | yes | - | String to split | |
separator | - | " " | Separator string |