Compare two numbers - Node.js Number

Node.js examples for Number:Compare

Description

Compare two numbers

Demo Code


Number.prototype.compareTo = function (other) {
    return this.valueOf() == other;
};

Related Tutorials