- function alphabetRange (start, end, step = 1) {
- return new Array(Math.ceil((end.charCodeAt(0) - start.charCodeAt(0))/step))
- .fill(start.charCodeAt(0))
- .map((x, i) => String.fromCharCode(i*step + start.charCodeAt(0)));
- }
- console.log(alphabetRange('c', 'h', 2));