DEV Community

loading...

Discussion on: Coding Puzzles: Week of 4/8

Collapse
jacobmgevans profile image
Jacob Evans • Edited

I don't think this is better than the bitwise solution but it's a different one lol

const stray =(n)=> n.filter((ele,_,ar) => ele !== ar[1]).pop()