mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-20 22:04:39 -04:00
initial commit
This commit is contained in:
+12
@@ -0,0 +1,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);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user