Licence
AGPL-3.0
Version
1.0.1
Deps
0
Size
484 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
@iterable-iterator/count
A counting function for JavaScript. See docs.
Depending on your environment, the code may require
regeneratorRuntimeto be defined, for instance by importing regenerator-runtime/runtime.
import {count} from '@iterable-iterator/count';
for (const i of count()) console.log(i); // 0 1 2 3 4 ...
count(2, 3); // 2 5 8 11 14 ...