Array.insert Function
Inserts a single item into a specified index of an Array object. This function is static and can be invoked without creating an instance of the object.
Array.insert(array, index, item);
Use the insert function to insert an item into a specified index of an Array object. The index value of items that are greater than index is increased by one.
Calling the insert function and passing a negative value for index counts backward from the end of the array. Floating point values are rounded down to a whole number value.
Show: