RemoveItemAction

ArrayActions. RemoveItemAction

An action "removeItem" that can remove 1 or X items from a given index in an array, the array can be in either a property or a variable

If removeCount is 1, then the result will be just the item removed, if its > 1, then the result will be an array of the removed items

Constructor

new RemoveItemAction()

Source:
Examples
//Remove 1 items starting from index 1 of an array property
{
    "removeItem": {
        "of": { "property": "myArrayProperty" },
        "index": 1,
        "as": "myResultVariableName"
    }
}
//Remove 2 items starting from index 1 of an array property
{
    "removeItem": {
        "of": { "property": "myArrayProperty" },
        "index": 1,
        "removeCount": 2,
        "as": "myResultVariableName"
    }
}
//Remove 2 items starting from index 1 af an array variable
{
    "removeItem": {
        "of": { "variable": "myArrayVariable" },
        "index": 1,
        "removeCount": 2,
        "as": "myResultVariableName"
    }
}