slorber / combine-promises

Like Promise.all(array) but with an object instead of an array.

Home Page:https://sebastienlorber.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accept non promise ?

raskyer opened this issue · comments

Promise.all accept non promise in its array, whereas combinePromises need a Promise in order to not complain.
An easy workaround is to put Promise.resolve but it would be even better to be able to pass raw data directly as for Promise.all

Is it a dead project @slorber ?

@raskyer that looks reasonable, if you submit a PR I'll merge it 👍