isreadonly Synchronous
is_readonly
Check whether a table currently rejects writes. This is useful before a temporary table edit that you plan to put back afterward.
Luau
isreadonly(value: Table) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
value | Table | Table to inspect. |
Returns
booleantrue when the table is marked read-only.
Example
Luau
local settings = { volume = 5 }
makereadonly(settings)
print(isreadonly(settings)) -- true