Skip to main content

Name

msys.type — Return the type name of the supplied parameter

Synopsis

msys.type(parameter);

parameter: mixed

Description

Returns the type name of the supplied parameter, just like the built-in Lua type function. The difference is that for userdata created by Momentum, the underlying object name will be returned instead of "userdata".

Because this function is in the msys namespace, an explicit require is not necessary.

Was this page helpful?