Executing in series

suggest change

mapSeries 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);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents