Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. const serializePromise = funcs =>
  2. funcs.reduce((promise, func) =>
  3. promise.then(result => func().then(Array.prototype.concat.bind(result))),
  4. Promise.resolve([]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement