array_slice
Returns a portion of an array.
{ "{returns}": { "array_slice": { "of": [1, 2, 3, 4], "from": 1, "to": 3, "reversed": false } } }
from
to
reversed
{ "{returns}": { "array_slice": { "of": ["a", "b", "c", "d"], "from": 1, "to": 3 } } }
The result is ["b", "c"].
["b", "c"]
There was an error while loading. Please reload this page.