Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paldepind/flyd-sampleon
sampleOn for Flyd.
https://github.com/paldepind/flyd-sampleon
Last synced: 15 days ago
JSON representation
sampleOn for Flyd.
- Host: GitHub
- URL: https://github.com/paldepind/flyd-sampleon
- Owner: paldepind
- License: mit
- Created: 2015-03-31T07:45:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-13T08:15:52.000Z (over 9 years ago)
- Last Synced: 2024-10-13T17:46:58.099Z (about 1 month ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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__
```javascript
// 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);
```