https://github.com/andarist/callbag-element-at
👜 Callbag operator that emits the single value at the specified index.
https://github.com/andarist/callbag-element-at
callbag callbags
Last synced: 6 months ago
JSON representation
👜 Callbag operator that emits the single value at the specified index.
- Host: GitHub
- URL: https://github.com/andarist/callbag-element-at
- Owner: Andarist
- Created: 2018-04-27T15:53:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T20:03:44.000Z (almost 7 years ago)
- Last Synced: 2025-03-06T14:05:06.884Z (7 months ago)
- Topics: callbag, callbags
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# callbag-element-at
Callbag operator that emits the single value at the specified `index`.
## Example
```js
import elementAt from 'callbag-element-at'
import forEach from 'callbag-for-each'
import fromEvent from 'callbag-from-event'
import pipe from 'callbag-pipe'pipe(
fromEvent(document, 'click'),
elementAt(2),
forEach(event => {
// will log 3rd click
console.log(event)
}),
)
```