in reply to Ways to add an item into the middle of an array?

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.


All is well. I learn by answering your questions...
  • Comment on Re: Ways to add an item into the middle of an array?