Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const serializePromise = funcs =>
- funcs.reduce((promise, func) =>
- promise.then(result => func().then(Array.prototype.concat.bind(result))),
- Promise.resolve([]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement