Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete value from an array javascript

var list = ["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 #array #javascript
ADD COMMENT
Topic
Name
8+2 =