Skip to content
MetatablesOverview

isreadonly

Reports whether a table is marked read-only.

Details#

Returns whether a table's read-only flag is set. This checks mutability of that table, not __metatable visibility or whether nested tables are also read-only.

Examples#

Example

Luau
local value = {}
print(isreadonly(value)) -- false