const range = (start, stop, step) => Array.from({length:(stop - start) / step + 1}, (_,i)=> strat + (i * step); range(0,5,1) // 0,1,2,3,4,5 range('A'.charCodeAt(0),'Z'.charCodeAt(0),1).map((x)=>String.fromCharCode(x)) // 'A','B','C','...,'Z'