pull-async-filter

1.0.0 • Public • Published

SYNOPSIS

A through stream that removes items with an async filter.

USAGE

var remove = require('pull-async-filter');
var pull = require('pull-stream');

function should(v, cb) {
  setTimeout(function () {
      cb(null, v === 10);
  });
}

pull(
  pull.values([10, 10, 30, 10]),
  remove(should),
  sum(function (err, value) {
    console.log(value); // 30
  })
);

Package Sidebar

Install

npm i pull-async-filter

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dweinstein