【文件属性】:
文件名称:realtypeof:您可以获取值的真实类型(即数组,空值,对象,映射,集合等)
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-10 11:58:10
nodejs javascript npm programming types
实型
这是一个非常简单轻巧的软件包,用于获取值的真实类型。
安装
$ npm install realtypeof
用法
const realTypeOf = require ( 'realtypeof' ) ;
realTypeOf ( 45 ) ; // 'number'
realTypeOf ( 'hello' ) ; // 'string'
realTypeOf ( true ) ; // 'boolean'
realTypeOf ( null ) ; // 'null'
realTypeOf ( undefined ) ; // 'undefined'
realTypeOf ( Symbol ( ) ) ; // 'symbol'
realTypeOf ( [ ] ) ;
【文件预览】:
realtypeof-master
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(2KB)
----index.js(562B)
----package.json(654B)