mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
"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);
|
|
};
|
|
};
|