PrependAction

ArrayActions. PrependAction

An action "prepend" that can prepend an 'item' or a number of 'items' to an array, the array can be from either a property or a variable

Constructor

new PrependAction()

Source:
Examples
// Prepend a string item to an array inside a property
{
    "prepend": {
        "to": {"property": "myStringArrayProperty"},
        "item": "myStringItem"
    }
}
// Prepend a string item to an array inside a property, on a non selected concept
{
    "prepend": {
        "to": {"property": "myConcept.myStringArrayProperty"},
        "item": "myStringItem"
    }
}
// Prepend a string item to an array inside a variable
{
    "prepend": {
        "to": {"variable": "myStringArrayVariable"},
        "item": "myStringItem"
    }
}
// Prepend a number of string items to an array inside a variable
{
    "prepend": {
        "to": {"variable": "myStringArrayVariable"},
        "items": ["myStringItem1", "myStringItem2"]
    }
}