# getDataType([data]) ⇒ string
获取数据类型
Returns: string -
返回数据类型
Author: liukun 919590347@qq.com
| Param | Type | Description |
|---|---|---|
| [data] | any | 可选,要检测的数据 |
Example
import { getDataType } from '@wont/utils'
getDataType(1) // returns 'number'
getDataType([]) // returns 'array'
getDataType({}) // returns 'object'