libs/core/src/utils/range.ts
/**
* Range
*
* Range accepts two inputs, a `start` and an `end`
* and returns an array filled with numbers from
* `start` to `end`.
*
* @param start
* @param end
* @returns number
*/
export const range = (start: number, end: number): Array<number> =>
Array(end - start + 1).fill(0).map((val, index) => index + start);