Compare two number for equal - Node.js Number

Node.js examples for Number:Compare

Description

Compare two number for equal

Demo Code


Number.prototype.equals = function (another) {
    return this - another === 0;
};

Related Tutorials