You could have done search,
How do I insert an element into an arbitrary (in range) array index?
++choroba,
As choroba given the code, splice is the best way to insert element in middle of the array, I mean performance.
In reply to Re: Ways to add an item into the middle of an array?
by vinoth.ree
in thread Ways to add an item into the middle of an array?
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |