Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove item from array by value

var arr = ['bill', 'is', 'not', 'lame'];

arr.splice(output_items.indexOf('not'), 1);

console.log(arr) //returns ['bill', 'is', 'lame']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #remove #item #array
ADD COMMENT
Topic
Name
7+6 =