simple-type:javascript typeof 的增强

时间:2021-07-12 11:39:26
【文件属性】:
文件名称:simple-type:javascript typeof 的增强
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-12 11:39:26
JavaScript 简单类型 增强 javascript typeof 安装 这个模块是通过 npm 安装的: $ npm install simple-type 示例用法 var simpleType = require ( 'simple-type' ) ; simpleType ( [ 1 , 2 , 3 ] ) === 'array' // true simpleType ( { name : 'ruan' , age : 12 } ) === 'object' //true simpleType ( new Date ( ) ) === 'date' // true //string, number, null, function, regexp, boolean, undefined are also supported
【文件预览】:
simple-type-master
----.travis.yml(38B)
----index.js(508B)
----test.js(1KB)
----package.json(531B)
----LICENSE(1KB)
----.gitignore(603B)
----README.md(638B)
----.jshintrc(351B)
----.editorconfig(197B)

网友评论