Created
October 10, 2015 21:29
-
-
Save geoffreydhuyvetters/04e3f067848bb304c6c7 to your computer and use it in GitHub Desktop.
fetch and merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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