is-bigint:这是ES BigInt值吗?

时间:2021-05-12 04:31:04
【文件属性】:
文件名称:is-bigint:这是ES BigInt值吗?
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-12 04:31:04
javascript brand is ecmascript bigint is-bigint 这是ES BigInt值吗? 例子 var isBigInt = require ( 'is-bigint' ) ; assert ( ! isBigInt ( function ( ) { } ) ) ; assert ( ! isBigInt ( null ) ) ; assert ( ! isBigInt ( function * ( ) { yield 42 ; return Infinity ; } ) ; assert ( ! isBigInt ( Symbol ( 'foo' ) ) ) ; assert ( isBigInt ( 1n ) ) ; assert ( isBigInt ( Object ( 1n ) ) ) ; 测验 只需克隆仓库, npm install ,然后运行npm test
【文件预览】:
is-bigint-main
----.eslintrc(192B)
----index.js(711B)
----package.json(1KB)
----.github()
--------FUNDING.yml(580B)
--------workflows()
----test()
--------.eslintrc(127B)
--------index.js(2KB)
----.nycrc(139B)
----LICENSE(1KB)
----.npmignore(1016B)
----.gitignore(997B)
----CHANGELOG.md(5KB)
----.npmrc(55B)
----README.md(1KB)
----.eslintignore(10B)

网友评论