Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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