No, ma ora scrivo un prototype che lo fa:
Dimmi se funzia.codice:Number.prototype.between = function(min, max, incl) { return (this > min && this < max) || (incl && (this == min || this == max)); }
Il terzo parametro è un booleano facoltativo che devi passare come true se ti interessano gli estremi inclusi.
Es.
if (myVar.between(5,7))
...
Comodo... non ci avevo mai pensato!