1.0.0 • Published 4 years ago

alegrify-async-map v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

async-map

Build Status NPM

Array.prototype.map, but with async callbacks

Usage

const asyncMap = require('alegrify-async-map');

const items = [1, 2, 3];
const filteredItems = asyncMap(items, async (element, index, array) => {
  return await someAsyncMethod(element);
});