BlueBird API
Promise.mapSeries()
//Promises Series
/* Will execute each item in a iterable but will wait for successful execution of previous
item to finish.
*/
// Promise Map
Promise.map()
/*Description:
Runs all promises in an array in Parallel.
*/
Promise.each()
/*
Iteration happens serially and rejects if any promises are rejected in array.
Returns promise or a thenable.
Iterate over an array or a promise of an array, which contains promises ( or a mix of
promises and values ) with the given iterator function with the signature (value, index, lengith)
where value is the resolved value.
*/