News for hackers. Stuff that matters.
Re:We have a problem with promises by dcherman on Monday May 18, 2015 @11:42AM (#9565062)
Bluebird has this built in. For a quick userscript where I needed something similar, I created this which works ( warning: no unit tests, but it works for me )

https://gist.github.com/dcherman/4dfba0d72c008ee5b59d

It's a reduce function, but it could work as a forEach as well.

There are no comments on this comment yet.