Fast and 'costless' range function for javascript based on generators.
Optional
const arr1000 = [...range(0, 1000)];// creates an array with 1000 items counting from 0 to 999. Copy
const arr1000 = [...range(0, 1000)];// creates an array with 1000 items counting from 0 to 999.
Fast and 'costless' range function for javascript based on generators.