Executing in series
suggest changemapSeries is a Bluebird method. A native promise has no mapSeries.
const Promise = require('bluebird');
Promise.resolve([1, 2, 3])
.mapSeries(el => Promise.resolve(el * el)) // in real code, return a promise for async work
.then(console.log);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents