_.range() in pure JS
const array = (len) => Array(len).fill().map((e, i) => (i)); /* * > console.log(array(3)); * > [0,1,2] * */