1.0.1 • Published 6 years ago

callbag-element-at v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

callbag-element-at

Callbag operator that emits the single value at the specified index.

Example

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

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago