How to use the async-es.map function in async-es

To help you get started, we’ve selected a few async-es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github olivernyc / static / src / App.js View on Github external
const addContent = (blocks, cb) => {
      async.map(blocks, addBlock, (err, content) => {
        if (err) {
          cb(err);
          return;
        }

        cb(null, content);
      });
    };

async-es

Higher-order functions and common patterns for asynchronous code

MIT
Latest version published 2 months ago

Package Health Score

89 / 100
Full package analysis