Javascript Number toInt()

Description

Javascript Number toInt()


Number.prototype.toInt = function(){
  return parseInt(this);
};

Javascript Number toInt()

Number.prototype.toInt = function() {
  return (this | 0);
};



PreviousNext

Related