type

Get the type name of a value

Returns a string representation of the value’s type (e.g., “Int”, “String”, “List”).

Parameters

Returns

The type name.

Examples

type(123)
-- Returns = "Int"

type([1, 2])
-- Returns = "List"