【文件属性】:
文件名称:stream-union:排序流的并集
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-05 12:24:31
JavaScript
流联合
排序流的并集
安装
npm install stream-union
例子
var cmp = require ( 'typewise-cmp' )
function max ( a , b ) { return 0 <= cmp ( a , b ) ? a : b }
function getKey ( item ) { return item . key }
function maxValue ( a , b ) { return max ( a . value , b . value ) }
var union = require ( 'stream-union' )
. using ( { toKey : getKey , cmp : cmp , merge : maxValue } )
…
应用程序接口
union(aStream :: ReadableStr
【文件预览】:
stream-union-master
----.jshintrc(92B)
----package.json(568B)
----index.js(2KB)
----README.md(1KB)