twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

filter.js (314B)


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