mirror of
https://github.com/Primexz/advanced_async-iterate.git
synced 2026-08-14 22:18:12 +00:00
Advanced Async Iterate is a JavaScript library that simplifies the handling of arrays. You can now execute asynchronous functions in functions like forEach or map!
- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| .prettierrc | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Async Iterate
Advanced Async Iterate is a JavaScript library that simplifies the handling of arrays. You can now execute asynchronous functions in interactions like forEach or map!
Example Usage
Please note that this example doesn't use async functions!
const each = require('advanced_async-iterate')
const result = await each.each([ 1, 2, 3, 4 ], map = async (value) => {
return value += 1
}, map = async (value) => {
return value *= 2
})
console.log(result) // [ 4, 6, 8, 10 ]
Implemented Array Functions
- forEach
- every
- map
- filter