8000 GitHub - Andarist/callbag-element-at: 👜 Callbag operator that emits the single value at the specified index.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Andarist/callbag-element-at

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published
0