times-loop
Version:
run a function n times, both sync and async functions are supported
16 lines (10 loc) • 406 B
Markdown
[3.0.0]
- breaking: TypeScript rewrite. Returns results as array. Added `timesParallel` and `timesSeries` for promises.
[2.0.0]
- breaking: Promise support. Sync now returns a promise if the first result is a promise.
it runs the promises/results in series.
[1.0.0]
- Initial implementation w/ docs and 100% test coverage
- Supports sync loops
- Supports async loops
- Supports options: n, indexArg