DEV Community

loading...

Discussion on: JavaScript Coding Challenges

Collapse
mehdibenhemdene profile image
mehdibenhemdene

Also a simple "Destroyer" implementation:

function destroyer(arr, ...params) {
  return arr.filter(el=>!params.includes(el));
}