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
- Host: GitHub
- URL: https://github.com/fergiemcdowall/intersect-arrays-to-stream
- Owner: fergiemcdowall
- License: mit
- Created: 2016-08-09T15:50:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-11T18:12:32.000Z (over 8 years ago)
- Last Synced: 2025-02-01T00:57:46.203Z (3 months ago)
- Language: JavaScript
- Size: 2.08 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```