ArrayAppend
Last updated
Was this helpful?
Last updated
Was this helpful?
Append a value to an array
array
modifiableArray
true
The array to which the element should be appended.
value
any
true
The element to append. Can be any type.
merge
boolean
false
If true, the value is assumed to be an array and the elements of the array are appended to the array. If false, the value is appended as a single element.
false
Uses the arrayAppend function to append a value to the end of the array
Result: [1,2,3,4]
Invoking the append function on an array is the same as running arrayAppend.
Result: [1,2,3,4]
You can merge two arrays when third parameter is set to true.
Result: [1,2,3,4,5,6]