【文件属性】:
文件名称:is-primitive:typeof值是javascript原语吗?
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-04 18:28:29
nodejs javascript node string is
本原的
如果该值是原始类型,则返回true 。
请考虑关注该项目的作者 ,并考虑为该项目以显示您的 :red_heart: 和支持。
安装
使用安装:
$ npm install --save is-primitive
原始值
定义了六种基本类型的数据类型:
Boolean
Null
Undefined
Number
String
Symbol (ECMAScript 6中的新增功能)
用法
var isPrimitive = require ( 'is-primitive' ) ;
真的
以下所有返回true :
console . log ( isPrimitive ( false ) ) ;
console . log ( isPrimitive ( true ) ) ;
console . log ( isPrimitive ( null ) ) ;
console . log
【文件预览】:
is-primitive-master
----.eslintrc.json(4KB)
----.gitignore(302B)
----package.json(1KB)
----.npmrc(18B)
----.travis.yml(149B)
----LICENSE(1KB)
----index.js(319B)
----test.js(1KB)
----.verb.md(872B)
----README.md(4KB)
----bench.js(3KB)
----.gitattributes(127B)
----.editorconfig(289B)