Answers for "how to delete same mutiple value in array in js"

4

remove multiple values from array javascript

const nums = [1, 2, 3, 4, 5, 6];
const remove = [1, 2, 4, 6];

function removeFromArray(original, remove) {
  return original.filter(value => !remove.includes(value));
}
Posted by: Guest on August-16-2020

Code answers related to "how to delete same mutiple value in array in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language