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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-11-29 23:06:37 +01:00
src feat(types): improved types 2022-11-29 22:52:28 +01:00
.gitignore feat: initial commit 2022-11-29 22:44:51 +01:00
.prettierrc feat: initial commit 2022-11-29 22:44:51 +01:00
package-lock.json feat: initial commit 2022-11-29 22:44:51 +01:00
package.json docs: Update README.md 2022-11-29 23:02:04 +01:00
README.md docs(README): correct code example 2022-11-29 23:06:37 +01:00
tsconfig.json feat: initial commit 2022-11-29 22:44:51 +01:00

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