An open API service indexing awesome lists of open source software.

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.

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)
}),
)
```