SliceAction

ArrayActions. SliceAction

An action 'slice' that slices a string or an array.

Constructor

new SliceAction()

Source:
Examples
//Slices mySliceableProperty starting from 0, ending with 10, saving the result in "myResultVariable"
{
    "slice": {
        "of": {
            "property": "mySliceableProperty"
        },
        "start": 0,
        "end": 10,
        "as": "myResultVariable"
    }
}
//Shorthand: Slices the variable "mySliceableVariable", from 0 to end, which in practice, means its a copy of the whole thing
{
    "slice: "mySliceableVariable"
}