a37e22c058bdd5910e28e74d446fa13b06ee6142
[aai/esr-gui.git] /
1 "use strict";
2 module.exports = function(Promise, INTERNAL) {
3 var PromiseReduce = Promise.reduce;
4
5 Promise.prototype.each = function (fn) {
6     return PromiseReduce(this, fn, null, INTERNAL);
7 };
8
9 Promise.each = function (promises, fn) {
10     return PromiseReduce(promises, fn, null, INTERNAL);
11 };
12 };