【文件属性】:
文件名称:callbag-of::handbag:发出指定为参数值的Callbag源工厂
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-28 01:20:34
callbag callbags JavaScript
通话袋
发出指定为参数值的Callbag源工厂。 它类似于 ,但此创建了一个可源,并且不依赖于迭代协议。
例子
import observe from 'callbag-observe'
import of from 'callbag-of'
import pipe from 'callbag-pipe'
pipe (
of ( 1 , 2 , 3 , 4 , 5 ) ,
observe ( value => {
// will log 1, 2, 3, 4, 5
console . log ( value )
} ) ,
)
【文件预览】:
callbag-of-master
----.gitignore(18B)
----package.json(1KB)
----.npmrc(19B)
----src()
--------index.js(367B)
----.travis.yml(39B)
----.huskyrc(53B)
----__tests__()
--------index.js(2KB)
----README.md(466B)
----.lintstagedrc(51B)
----.babelrc.js(240B)
----.prettierrc(69B)
----index.d.ts(111B)