Javascript Number xor( a )

Description

Javascript Number xor( a )

Number.prototype.xor = function( a ){
 return ( a ? 1 : 0 ) ^ ( this ? 1 : 0 );
}



PreviousNext

Related