Skip to main content

type

Returns the type of its only argument, coded as a string. The possible results of this function are "nil" (a string, not the value nil), "number", "string", "boolean", "table", "function", "thread", and "userdata".

type(value): string

Arguments

NameDescriptionType
valueThe value to get the type of.unknown

Returns string