How to insert an item into an array at a specific index (JavaScript)
Asked 07 September, 2021
Viewed 1.7K times
  • 56
Votes

I am looking for a JavaScript array insert method, in the style of:

arr.insert(index, item)

Preferably in jQuery, but any JavaScript implementation will do at this point.

20 Answer