flyd-once

0.0.2 • Public • Published

Flyd-once

Build Status

Once stream for Flyd

Usage

var stream$ = flyd.stream()
var once$ = once(stream$)
var result = []
flyd.on(function (val) {
  result.push(val)
}, once$)
 
stream$(1)
stream$(2)
 
assert.deepEqual(result.length, 1)
assert.deepEqual(result, [1])

Package Sidebar

Install

npm i flyd-once

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bertofer