Number.prototype.n = function () { for(var i = +this, a = []; i <= n; a.push(i++)); return a; } var n = 15 var x = 6..n () alert(x)//6,7,8,9,10,11,12,13,14,15
Number.prototype.n = function () { for(var i = +this, a = []; i <= n; a.push(i++)); return a; } var n = 15 var x = 6..n () alert(x)//6,7,8,9,10,11,12,13,14,15