You can provide a range method in javascript, but you will have to use it a lot to pay to include it in your source code.
var A= Array.from(-5,5) >>> return value:
(Array) -5, - 4, -3, - 2, -1, 0,1,2,3,4,5
var B= Array.from(10,100,10) >>> return value:
(Array) 10,20,30,40,50,60,70,80,90,100
var C= Array.from('a','z') >>> return value:
(Array) a, b, c, d, e, f, f, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x , y, g
Array.from= function(what, n, step){ var A= []; if(arguments.length){ if(n){ return A.range(what, n, step) } L= what.length; if(L){ while(L){ A[--L]= what[L]; } return A; } if(what.hasOwnProperty){ for(var p in what){ if(what.hasOwnProperty(p)){ A[A.length]= what[p]; } } return A; } } return A; } Array.prototype.range= function(what, n, step){ this[this.length]= what; if(what.split && n.split){ what= what.charCodeAt(0); n= n.charCodeAt(0); while(what<n){ this[this.length]= String.fromCharCode(++what); } } else if(isFinite(what)){ step= step || 1; while(what <n) this[this.length]= what+= step; } return this; }