Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to delete element in list javascript

//using filter method
let itemsToBeRemoved = ["Sunday", "Monday"]
var filteredArray = myArray.filter(item => !itemsToBeRemoved.includes(item))
 
PREVIOUS NEXT
Tagged: #delete #element #list #javascript
ADD COMMENT
Topic
Name
2+4 =