This global replaces the built-in Lua function of the same name.
| Arguments | Returns |
|---|---|
| v: any | string |
The type(v) function returns a string representing the type of the passed object v.
Return values
The type function can return the following values.