【文件属性】:
文件名称:is-boxed-primitive:用于节点的util.types.isBoxedPrimitive()的Polyfillshim
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-12 02:48:38
javascript is primitive boxed JavaScript
盒装原语
节点util.isBoxedPrimitive() Polyfill / shim
例子
var isBoxedPrimitive = require ( 'is-boxed-primitive' ) ;
var assert = require ( 'assert' ) ;
[
undefined ,
null ,
true ,
false ,
0 ,
NaN ,
Infinity ,
0n ,
'' ,
'foo' ,
Symbol ( ) ,
Symbol . iterator ,
] . forEach ( ( v ) => {
assert ( ! isBoxedPrimitive ( v ) ) ; // primitive form is not boxed
if ( v != null ) {
assert ( isBoxedPr
【文件预览】:
is-boxed-primitive-main
----.eslintrc(153B)
----.github()
--------FUNDING.yml(589B)
--------workflows()
----.npmignore(1016B)
----LICENSE(1KB)
----test()
--------.eslintrc(156B)
--------index.js(1KB)
----README.md(1KB)
----.npmrc(55B)
----implementation.js(187B)
----.gitignore(997B)
----CHANGELOG.md(5KB)
----.eslintignore(10B)
----package.json(2KB)
----.nycrc(139B)