Skip to content

type

type(obj) ⇒ String

Check what type is provided

Kind: global function
Returns: String - String

ParamType
objany

Example

console.log(type(null))
console.log(type(undefined))
console.log(type(5))
console.log(type(true))
console.log(type('str'))