overpromise
v0.0.1
Published
Iterate with promises
Maintainers
Readme
Overpromise
Iterate with promises.
Installation
npm install overpromiseUsage
import { overAll } from "overpromise";
const ids = [1, 2, 3];
const result = await overAll(ids, async (id) => {
const data = await fetch(`https://api.example.com/items/${id}`);
return data.json();
});