0.0.2 • Published 8 years ago

flyd-once v0.0.2

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

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])
0.0.2

8 years ago

0.0.1

8 years ago