array element remove, How do I remove a particular element from an array in JavaScript?

delete: delete anArray[index];

Keep in mind that when you use delete for an array you could get wrong results for anArray.length. In other words, delete would remove the element but wouldn’t update the value of length property.

good solution:

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 ]

https://stackoverflow.com/questions/5767325/how-do-i-remove-a-particular-element-from-an-array-in-javascript