Returns an object’s metatable even when a __metatable field would normally hide it from getmetatable. Returns nil when the object has no metatable at all.

Parameters

any
required
The value to read the metatable of.

Returns

table or nil
The raw metatable, or nil.

Example

Errors