Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
array-insert
Creates a new array with `value` inserted at the specified index.
Parameter
Type
Description
self
[T]
Initial array
index
number
Index at which to insert the value
value
T
Value to insert
return
[T]
New array with `value` inserted at index