Get the type of a value.
获取值的类型。
The value to get the type of. 要获取类型的值
The type of the value as a string. 值的类型字符串
typeOf(null) // => 'null'typeOf([]) // => 'array'typeOf(new Map()) // => 'map'typeOf(new Date()) // => 'date'typeOf(42) // => 'number'typeOf('hello') // => 'string'typeOf(() => {}) // => 'function' Copy
typeOf(null) // => 'null'typeOf([]) // => 'array'typeOf(new Map()) // => 'map'typeOf(new Date()) // => 'date'typeOf(42) // => 'number'typeOf('hello') // => 'string'typeOf(() => {}) // => 'function'
Get the type of a value.
获取值的类型。