Javascript Number signed()

Description

Javascript Number signed()


'use strict';// w ww .  j a  v a  2s  .c o  m

Number.prototype.signed = function () {
    return this & 0x80 ? -((0xff & ~this) + 1) : this;
};



PreviousNext

Related