Skip to content

Instantly share code, notes, and snippets.

@NathanKleekamp
Created August 22, 2018 00:56
Show Gist options
  • Save NathanKleekamp/31768ff133d6cf8555e280169589e3e9 to your computer and use it in GitHub Desktop.
Save NathanKleekamp/31768ff133d6cf8555e280169589e3e9 to your computer and use it in GitHub Desktop.
isEven js utility fn
const isEven = x => x % 2 === 0;
isEven(2); // true
isEven(1); // false
isEven(0); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment