Add an each() method to ypromise-based ES6 Promises