callbag-element-at

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i callbag-element-at

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.98 kB

Total Files

4

Last publish

Collaborators

  • andarist