Function getmetatable

  • Returns the metatable of the specified object if it has one, otherwise returns nil. If the object does have a metatable, but the metatable has a __metatable field set, the value of __metatable will be returned instead.

    Parameters

    • object: object

    Returns unknown