[AskJS] Can you share clever or silly JavaScript code snippets?

I'm searching for clever code snippets that take a while to understand, even that there are simple.

Here is an example of what I have in mind:

const f = n => [false, true][n % 2];

Do you know of similar examples? Can be larger or smaller than this, but a single line function is preferred, so it don't take long to read.