Fast and 'costless' range function for javascript based on generators.
Optional
import { range } from 'deleight/generators';const arr1000 = [...range(0, 1000)];// creates an array with 1000 items counting from 0 to 999. Copy
import { range } from 'deleight/generators';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.