1.0.3 • Published 9 years ago

flyd-sampleon v1.0.3

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

flyd-sampleon

sampleOn for Flyd.

Samples from the second stream every time an event occurs on the first stream.

Signature

Stream a -> Stream b -> Stream b

Usage

// Assume `sendBtnClicked` emits whenever a send button is pressed and
// `messageText` is a stream of the current content of an input field.
// Then `sendMessage` emits the content of the text field whenever the button
// is pressed.
var sendMessage = sampleOn(sendBtnClicked, messageText);
1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago