getClass ⇒ String
获取传入值的类型
Kind: global constant
Returns: String - 返回传入值类型
Access: public
Description:: 传入任意值,返回当前值的类型(默认首字母大写)
Version: 0.0.4
Author: daoxin
| Param | Type | Description |
| --- | --- | --- |
| val | \* | 传入值 |
| lowerCase | Boolean | 是否返回传入值为小写 |
Example
``js
getClass(/foo/); // => "RegExp"
``