Is there a simple way to create the list in JavaScript?
No, but you can create your own solution using ES features like map and spread syntax.
var range = (start, end) => start < end ? [...Array(end - start)].map((_, i) => start + i) : []; console.log(range(1,9)); Also, returns an empty array for case when start is greater than end.