Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to delete an element from an array in javascript

["bar", "baz", "foo", "qux"]list.splice(0, 2) // Starting at index position 0, remove two elements ["bar", "baz"] and retains ["foo", "qux"].
Source by love2dev.com #
 
PREVIOUS NEXT
Tagged: #delete #element #array #javascript
ADD COMMENT
Topic
Name
4+2 =