Skip to content

Instantly share code, notes, and snippets.

@hpieroni
Created July 9, 2020 21:33
Show Gist options
  • Save hpieroni/f56fd139c2c476ab4eef6eedea122c88 to your computer and use it in GitHub Desktop.
Save hpieroni/f56fd139c2c476ab4eef6eedea122c88 to your computer and use it in GitHub Desktop.
const { compose, map, partial } = require('ramda');
const resolveAll = Promise.all.bind(Promise);
const mapAsync = compose(resolveAll, map);
// const mapAsync = fn =>
// compose(
// resolveAll,
// map(fn)
// );
module.exports = mapAsync;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment