Ad

A few useful applications of the Bitwise operators.

Do you know further functions, using those operators ??

const Integer = 
    a => 
    ~~a

const even = 
    a => 
    Boolean(~a & 1)

const double = 
    a => 
    a << 1

const halve =
    a => 
    a >> 1