Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js insert

arr.splice(index, 0, item); 
// will insert item into arr at the specified index 
// (deleting 0 items first, that is, it's just an insert).
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #insert
ADD COMMENT
Topic
Name
6+2 =