promise-array-runner

1.0.7 • Public • Published

Promise Array runner

let arrayOfMethods = [ methodOne, methodTwo ];

let promise = PromiseRunner.run(arrayOfMethods, startingObj);

promise.then((resultObj) => { });

Parameter startingObj is piping through promise methods. So every method in array should be like:

let methodOne = (startingObj) => { return new Promise( (resolve, reject) => { resolve(startingObj); }); };

Link to example

Readme

Keywords

none

Package Sidebar

Install

npm i promise-array-runner

Weekly Downloads

0

Version

1.0.7

License

ISC

Last publish

Collaborators

  • tomislav.fabeta