range between 2 integers code example
Example: range between two numbers
const range = (min, max) => [...Array(max - min + 1).keys()].map(i => i + min);
const range = (min, max) => [...Array(max - min + 1).keys()].map(i => i + min);