O'Reilly logo
  • M J thinks this is interesting:

n%2==0

From

Cover of JavaScript : Moving to ES2015

Note

n%2 === 1

1 rather than 0 to find odd numbers
=== rather than == for strict comparisons