Updated Promise.prototype.each