Javascript Number shift(bit)

Description

Javascript Number shift(bit)



Number.prototype.shift = function (bit) {
    return parseInt(this * (2 << bit));
};



PreviousNext

Related