zhf.type-of

1.0.1 • Public • Published

判断数据类型

  • 0依赖,支持,amd,commonjs,browser
const typeOf = require('zhf.type-of');
typeOf(''); // 'string'
typeOf(0); // 'number'
typeOf(true); // 'boolean'
typeOf(null); // 'null'
typeOf(undefined); // 'undefined'
typeOf([]); // 'array'
typeOf({}); // 'object'

Readme

Keywords

none

Package Sidebar

Install

npm i zhf.type-of

Weekly Downloads

11

Version

1.0.1

License

ISC

Unpacked Size

7.17 kB

Total Files

11

Last publish

Collaborators

  • zhouhuafei