Here you can find the source of isBetween(l,h)
Number.prototype.isBetween = function(l,h){ return (this >= l.val() && this <= h.val()); }
Number.prototype.isOdd = function () { return new Boolean(this.valueOf()&1);
function isOdd(num) { if (typeof num === 'number') { return ((num % 2) === 1) || ((num % 2) === -1) ? true : false; else { throw 'Not a number'; console.log(isOdd(3)); ...
Number.prototype.isOdd = function() { return !!(this % 2);
Number.prototype.odd = function () { return (this % 2 == 1)
Number.prototype.odd = function(){ return ( ( this % 2 ) == 1 )
Number.prototype.isBetween = function (min, max, inclusive) { return inclusive ? this >= min && this <= max : this > min && this < max; };
Number.prototype.isBetween = function isBetween(a, b) { if(a <= this) { return this <= b; return this >= b;
Number.prototype.even = function(){ return (this % 2 === 0); };
var puts = require("sys").puts; Number.square = function(n) { return n * n Number.even = function(n) { return n % 2 == 0 Number.odd = function(n) { return !this.even(n) ...