Skip to content

getmetatable

getmetatable(table)

Returns the metatable of the given table if present, otherwise it returns nil. If it does have a metatable, and the metatable has a __metatable metamethod, it returns that value instead.