Javascript Number leading()

Description

Javascript Number leading()

Number.prototype.leading = function(){
    return this <= 9 ? '0' + this : this;
};



PreviousNext

Related