Adding items at certain index to array

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hotmailking

I want to have an array of nodes, but I want to be able to add nodes at certain indices and remove them at certain indices as well… as far as I know this isn’t possible with the basic array class, is there any way to do something like this?

:bust_in_silhouette: Reply From: radubolovan
var my_array = []
my_array.insert(index, value)