Skip to content

Instantly share code, notes, and snippets.

@phlickey
Created October 11, 2021 11:31
Show Gist options
  • Save phlickey/ca1ad90e9a6c2cb049db391a68941732 to your computer and use it in GitHub Desktop.
Save phlickey/ca1ad90e9a6c2cb049db391a68941732 to your computer and use it in GitHub Desktop.
const isOdious = num => ((num >>> 0).toString(2).split('').reduce((count, cur)=> count += parseInt(cur), 0) % 2) !== 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment