I find my self using _.range a lot, and sometimes I don't want to drag with me lodash just for that reason.
What is the best way to do this without lodash?
My best solution is:
export function range(n) {
return new Array(n).fill(0).map((a, i) => i);
}