pop a specific value from array javascript code example
Example 1: javascript remove from array by index
//Remove specific value by index
array.splice(index, 1);
Example 2: how to delete element in list javascript
//using filter method
let itemsToBeRemoved = ["Sunday", "Monday"]
var filteredArray = myArray.filter(item => !itemsToBeRemoved.includes(item))