Add
System · system operation · implicitly imported
Appends an element to the end of an array.
If element is itself an array of a compatible type, all of its elements are appended.
Parameters
Array<ObjectType> array— The array to add the element to.ObjectType? element— The element to add.
Returns
Bool — true if the array was changed.
Errors
A runtime type error if element is not compatible with the element type of array, or array is not an Array. A runtime error if a nested array would make array multi-dimensional.