range between two number 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);