1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 8 8 8 30 8 6 | (function () { "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); }; }; }()); |