Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

intersect-arrays-to-stream

fergie116MIT0.0.3

A utility that takes 1 or more sorted arrays and emits a node stream event whenever an intersection is found

array, steam, intersection, intersect

readme

intersect-arrays-to-stream

Takes an arbitrary amount of sorted arrays and returns the intersect as a stream

  var iats = require('intersect-arrays-to-stream')

  var arr = [
    "Lorem ipsum dolor sit amet, ea movet euismod deserunt sed. Te has doming antiopam postulant.".split(' ').sort(),
    "Lorem ipsum dolor sit amet, ea movet euismod deserunt sed.".split(' ').sort(),
    "ea movet euismod deserunt sed. Te has doming antiopam postulant.".split(' ').sort()
  ]

  iats.getIntersectionStream(arr).pipe(process.stdout)       // deserunteaeuismodmovetsed.