Welcome to mirror list, hosted at ThFree Co, Russian Federation.

each.js « main « js « bluebird « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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);
};
};