Javascript Number isFloat()

Description

Javascript Number isFloat()


Number.prototype.isFloat = function(){
    return typeof (+this) === 'number' && this%1!==0
};



PreviousNext

Related