Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Object.type

type() -> string

Description

Get the built-in type of this variable.

Possible types are:

Example:

'hello'.type()
//= 'string'

[1, 2, 3].type()
//= 'list'

$obj = MyClass()
$obj.type()
//= 'object'

See Also