# insert

Function • Inserts a value into an array, returning the mutated array.


Arguments

name type description
index Number The index where the value will be inserted.
value Any The value to insert.
array Array The array into which to insert the value.

Returns

name type description
array Any The mutated array resulting from inserting the value.