How to use the asynciterator.SimpleTransformIterator.call function in asynciterator

To help you get started, we’ve selected a few asynciterator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LinkedDataFragments / Client.js / lib / sparql / DistinctIterator.js View on Github external
function DistinctIterator(source, options) {
  if (!(this instanceof DistinctIterator))
    return new DistinctIterator(source, options);
  SimpleTransformIterator.call(this, source, options);
  this._uniques = Object.create(null);
}
SimpleTransformIterator.subclass(DistinctIterator);