Metatables
hasmetatable
Returns whether the target value has a metatable. The function returns one boolean and does not return or change the metatable itself.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns whether the target value has a metatable. The function returns one boolean and does not return or change the metatable itself.
hasmetatable(target: any): boolean
local target = {}
print(hasmetatable(target))
setrawmetatable(target, {})
print(hasmetatable(target))