DEV Community

loading...

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));
}
Collapse
youngkip profile image
Pawl

this is beautiful. thanks

Collapse
aspittel profile image
Collapse
neovortex profile image
Neocortexxx

Wow, great! So clean!