0.0.1 • Published 4 years ago

seriap v0.0.1

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

serialp

Run promises in sequence

Usage

serialp(arrayOfPromisesFunctions,observer).then(
    (x=>{
        console.log(x);
        // ....
    }) // x being an array of [success:boolean,result]
); // no catch

observer is

  • either a function (index,success,result) which returns a boolean.
  • or a boolean

if observer returns false, promises execution stops

0.0.1

4 years ago