• File: example.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/npm/node_modules/sorted-union-stream/example.js
  • Date Modified: 10/26/1985 11:45 AM
  • File size: 313 bytes
  • MIME-type: text/plain
  • Charset: utf-8
var union = require('./')
var from = require('from2')

var sorted1 = from.obj([{key: 'a'}, {key: 'b'}, {key: 'c'}])
var sorted2 = from.obj([{key: 'b'}, {key: 'd'}])

var u = union(sorted1, sorted2)

u.on('data', function (data) {
  console.log(data)
})

u.on('end', function () {
  console.log('no more data')
})