【文件属性】:
文件名称:bind-first:将数据优先功能转换为
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-29 06:16:41
JavaScript
绑定优先
将数据优先功能转换为:: -functions
这是一个转换器功能,可与一起使用以数据为先的功能
安装
$ npm install --save @thisables/bind-first
用法
import { bindFirst } from '@thisables/bind-first' ;
const data = { id : 1 , name : 'foo' } ;
const hasPropFirst = ( data , prop ) => ! ! data [ prop ] ;
const hasThisFirst = hasPropFirst :: bindFirst ( )
assert . strictEqual ( data :: hasThisFirst ( 'name' ) , true ) ;
assert . strictEqual ( da
【文件预览】:
bind-first-master
----module()
--------index.js(213B)
----.jshintrc(170B)
----.gitattributes(12B)
----.babelrc(17B)
----.tachikoma.yml(34B)
----license(1KB)
----.travis.yml(60B)
----.editorconfig(228B)
----tests()
--------test.js(373B)
----.gitignore(57B)
----readme.md(1KB)
----package.json(1KB)