5.0.3 • Published 6 years ago

@unction/type v5.0.3

Weekly downloads
32
License
ISC
Repository
github
Last release
6 years ago

@unction/type

Tests Stability Dependencies

(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"