@unction/type
v5.0.3
Published
Returns the type name of the value provided.
Downloads
424
Readme
@unction/type
(null | void | {constructor: {name: string}}) => string
Returns the type name of the value provided.
type("a") // "String"
type(1) // "Number"
type({}) // "Object"
type([]) // "Array"
type(true) // "Boolean"
type(null) // "null"
type(undefined) // "undefined"