Here you can find the source of between( a, b )
Number.prototype.between = function( a, b ) { return a <= this && b >= this || b <= this && a >= this; }
Number.prototype.between = function() { return this > arguments[0] && this < arguments[1]; };
Number.prototype.between = function(a, b) { var min = Math.min.apply(Math, [a, b]), max = Math.max.apply(Math, [a, b]); return this > min && this < max; };
Number.prototype.between = function(a, b){ return (this >= a && this < b); function getDirection(ox, oy, tx, ty){ var dx = tx - ox; var dy = ty - oy; var rad = Math.atan2(dx, dy); var degree = (rad*180)/Math.PI; if( degree < 0 ) degree += 360; ...
Number.prototype.between = function (a, b, inclusive) { var min = Math.min.apply(Math, [a, b]), max = Math.max.apply(Math, [a, b]); return inclusive ? this >= min && this <= max : this > min && this < max; };