@daoxin/getclass

0.0.4 • Public • Published

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 liuhangbiaoo@gmail.com

Param Type Description
val * 传入值
lowerCase Boolean 是否返回传入值为小写

Example

getClass(/foo/); // => "RegExp"

Readme

Keywords

none

Package Sidebar

Install

npm i @daoxin/getclass

Weekly Downloads

1

Version

0.0.4

License

none

Unpacked Size

1.42 kB

Total Files

3

Last publish

Collaborators

  • daoxin