jQuery - insert item into array at a specific index

Posted by tags2k on Stack Overflow See other posts from Stack Overflow or by tags2k
Published on 2009-02-25T14:29:30Z Indexed on 2010/06/10 0:12 UTC
Read the original article Hit count: 557

Filed under:
|
|

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 because I can't believe the trouble I'm having finding such a basic function! Thanks for your help.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about arrays