Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81160 views
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
};
13
14