github地址:https://github.com/ABCDdouyae…
kind-of
判断数据类型
用法
:kind-of(date)
返回
:string
数据类型 | ||||||||
---|---|---|---|---|---|---|---|---|
January | undefined | null | boolean | string | number | function | ||
array | regexp | date | arguments | error | buffer | set | ||
weakset | map | weakmap | symbol | init8array | unit8array | uint8clampedarray | ||
int16array | uint16array | int32array | uint32array | float32array | float64array | object |