promise.walk
Call promises in sequential order and return all the resolved contents to the callback function. (Rejected promise will not block the further promise execution.)
how to use?
Install dependence:
npm install promise-walk --save
Sample code:
const pw = ; //define promisesvar { return { ; };}; var { return { ; };}; var { return { ; };}; //call promises in sequential order and get back the resultspw;
Result:
apple
banana
orange
All promise results are stored here:
[ 'eat apple', 'eat banana', 'eat orange' ]