@unction/type
TypeScript icon, indicating that this package has built-in type declarations

5.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @unction/type

Weekly Downloads

35

Version

5.0.3

License

ISC

Unpacked Size

17.7 kB

Total Files

25

Last publish

Collaborators

  • krainboltgreene