Equivalent of BlueBird Promise.props for ES6 Promises?
问题 I would like to wait for a map of word to Promise to finish. BlueBird has Promise.props which accomplishes this, but is there a clean way to do this in regular javascript? I think I can make a new object which houses both the word and the Promise, get an array of Promises of those objects, and then call Promise.all and put them in the map, but it seems like overkill. 回答1: If you are dealing with a Map with values that are promises (or a mix of promises and non-promises) - and you want the