DEV Community

Discussion on: Daily Coding Puzzles - Nov 4th - Nov 9th

Collapse
thesoreon profile image
Paul Susicky

Tried in Javascript

function arrayDiff(arr1, arr2) {
    return arr1.filter(val => !arr2.includes(val));
}
Enter fullscreen mode Exit fullscreen mode
Collapse
youngkip profile image
Pawl

this is beautiful. thanks

Collapse
aspittel profile image
Ali Spittel Author

Nice!!

Collapse
neovortex profile image
Neocortexxx

Wow, great! So clean!