isreadonly
isreadonly checks whether a table is currently set as readonly.
function isreadonly(table: { any }): boolean
Parameters
| Parameter |
Description |
table |
The table to check for readonly status. |
Example
| Checking if a table is readonly |
|---|
| print(isreadonly({})) -- Output: false
print(isreadonly(getrawmetatable(game))) -- Output: true
|