typeof

Table of Contents

Function

typeof — the type of a value

Synopsis

typeof(val: any) -> type

Description

The typeof function returns the type of its argument val. Types are first class so the returned type is also a value. The type of a type is type type.

Examples

The types of various values:

yield typeof(this)
true
Loading...

The type of a type is type type:

yield typeof(typeof(this))
true
Loading...
Next: typeunder

SuperDB