Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove array value by index js

var value = 3
var arr = [1, 2, 3, 4, 5, 3]
arr = arr.filter(function(item) {
    return item !== value
})
console.log(arr)
// [ 1, 2, 4, 5 ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #array #index #js
ADD COMMENT
Topic
Name
1+1 =