blob: a37e22c058bdd5910e28e74d446fa13b06ee6142 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"use strict";
module.exports = function(Promise, INTERNAL) {
var PromiseReduce = Promise.reduce;
Promise.prototype.each = function (fn) {
return PromiseReduce(this, fn, null, INTERNAL);
};
Promise.each = function (promises, fn) {
return PromiseReduce(promises, fn, null, INTERNAL);
};
};
|