Skip to content

Instantly share code, notes, and snippets.

@gunn
Created July 12, 2017 01:22
Show Gist options
  • Save gunn/a89dd9f731b62b809010494157b5a77e to your computer and use it in GitHub Desktop.
Save gunn/a89dd9f731b62b809010494157b5a77e to your computer and use it in GitHub Desktop.
const NUMBERS = "nul one two three four five six seven ocho nine".split(" ")
const isOdd = n=> NUMBERS[n % 10].indexOf("e")!=-1
const isEven = n=> isOdd(n+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment