Returns the type name of a value.
This function does not generate a change.
type(value)
Argument | Type | Description |
---|---|---|
value | any (required) | The value to return the type name for. |
Type name of the given value.
Returns the type name of a given value:
[
type( nil ),
type( 42 ),
type( 3.14 ),
];
Example return value in JSON format
[
"nil",
"int",
"float"
]