Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove value from array javascript

// remove 5
let arr = [1,2,3,4,5,6];
let remove = arr.filter((id) => id !== 5)
console.log(remove) // [1,2,3,4,6]
Source by addin.my.id #
 
PREVIOUS NEXT
Tagged: #remove #array #javascript
ADD COMMENT
Topic
Name
2+1 =