Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: promise-array-runner
node v8.17.0
version:
1.0.0
endpoint
share
tweet
const {PromiseArrayRunner} = require("promise-array-runner"); let methodOne = (startingObj) => { startingObj.a = 1; return new Promise( (resolve, reject) => { resolve(startingObj); }); }; let arrayOfMethods = [ methodOne ]; PromiseArrayRunner.run(arrayOfMethods, {}).then( (resultObj) => { console.log(resultObj); });
Created from: https://npm.runkit.com/promise-array-runner
Loading…
no comments
sign in
to comment