Skip to content

toTypeString ​

返回输入值的 类型字符串。

使用 ​

ts
import { toTypeString } from 'rattail'

toTypeString({}) // return '[object Object]'
toTypeString([]) // return '[object Array]'

参数 ​

参数类型默认值
valueany

返回值 ​

类型
string