Skip to content

Instantly share code, notes, and snippets.

@geoffreydhuyvetters
Created October 10, 2015 21:29
Show Gist options
  • Select an option

  • Save geoffreydhuyvetters/04e3f067848bb304c6c7 to your computer and use it in GitHub Desktop.

Select an option

Save geoffreydhuyvetters/04e3f067848bb304c6c7 to your computer and use it in GitHub Desktop.
fetch and merge
export const fetchAndMerge = arr => {
return Promise.all(arr)
.then(data => Object.assign({}, ...data));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment