js-bit
Bit twiddling hacks code bricks for JavaScript.
Can be managed through duo, component, bower, or npm.
let bit = ;
Example usage:
/* Compute the sign of an integer */bit ; // 0bit ; // -1bit ; // +1 /* Compute the lexicographically next bit permutation */bitnext 0b00101001 ; // 0b00101010
References: