Replaces the contents of a list element.
listSetAt(list, position, value [, delimiters])
returns string
Name | Type | Required | Default | Description |
---|---|---|---|---|
list | string | Yes | ||
position | numeric | Yes | ||
value | string | Yes | ||
delimiters | string | No | , |
Replaces the 2nd list element with ‘foo’
listSetAt("bar,lorem,ipsum", 2, "foo")
Inserts ‘foo’ into the list with a custom delimiter
listSetAt("bar|lorem,ipsum|me|something", 2, "foo", "|")