An open API service indexing awesome lists of open source software.

https://github.com/fergiemcdowall/intersect-arrays-to-stream

Takes an arbitrary amount of sorted arrays and returns the intersect as a stream
https://github.com/fergiemcdowall/intersect-arrays-to-stream

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

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

```javascript
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.
```