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"
}