Skip to content

Instantly share code, notes, and snippets.

@laat
Created April 25, 2016 08:08
Show Gist options
  • Save laat/7ad7ce3be679a6bd1630751d2ad69ab2 to your computer and use it in GitHub Desktop.
Save laat/7ad7ce3be679a6bd1630751d2ad69ab2 to your computer and use it in GitHub Desktop.
o_0
export function mergeResults(...functions) {
return (...args) => functions.reduce((result, fn) => ({ ...result, ...fn(...args) }), {});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment