Skip to content
extends Array to have support Async methods
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
index.js
package.json

README.md

array-async-methods

available methods

  • mapA
  • forEachA
  • filterA
  • reduceA
  • reduceRightA
  • everyA
  • someA
  • findA
  • findIndexA

Provide promise instead of callback. That's return a Promise.

usage

install

npm i array-async-methods

just require in your code the module

require('array-async-methods');

chainability

These methods are also usable on Promise, it's chainable :

filesPath.mapA(filePath=>fsPromised.readFile(filePath,'utf8'))
.someA(async fileContent=>fileContent === 'good', '')
You can’t perform that action at this time.