Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filter.js 314B

123456789101112
  1. "use strict";
  2. module.exports = function(Promise, INTERNAL) {
  3. var PromiseMap = Promise.map;
  4. Promise.prototype.filter = function (fn, options) {
  5. return PromiseMap(this, fn, options, INTERNAL);
  6. };
  7. Promise.filter = function (promises, fn, options) {
  8. return PromiseMap(promises, fn, options, INTERNAL);
  9. };
  10. };