@daoxin/getclass
v0.0.4
Published
<a name="getClass"></a>
Downloads
5
Readme
getClass ⇒ String
获取传入值的类型
Kind: global constant Returns: String - 返回传入值类型 Access: public Description:: 传入任意值,返回当前值的类型(默认首字母大写)<npm i -g jsdoc-to-markdown && jsdoc2md index.js> Version: 0.0.4 Author: daoxin [email protected]
| Param | Type | Description | | --- | --- | --- | | val | * | 传入值 | | lowerCase | Boolean | 是否返回传入值为小写 |
Example
getClass(/foo/); // => "RegExp"