debug.getmetatable (object)
Returns the metatable of the given object or nil if it does not have a metatable.
object