Skip to content

Instantly share code, notes, and snippets.

@vanrez-nez
Created March 24, 2015 16:10
Show Gist options
  • Save vanrez-nez/9c86ccf59315837e107c to your computer and use it in GitHub Desktop.
Save vanrez-nez/9c86ccf59315837e107c to your computer and use it in GitHub Desktop.
Bitwise Operations
function isOdd(number) {
return !!(number & 1);
}
// Floor Float aka cast to Int
var n = 1.9 | 0; // -> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment