typeof

typeof(instance) ⇒ string

Return type of the instance.

Table 1. Parameters

instance

Instance of the object or primitive.

Return

Name of the type.

>>> typeof(1)
int32
>>> typeof(1L)
int64
>>> typeof([1, 2, 3])
array
>>> typeof(new Table())
object
>>> typeof(null)
null