Skip to main content
Tells you whether a table is currently locked against writes.

Parameters

Returns

true if t is read-only, false otherwise.

Example

Most internal metatables are read-only by default and must be unlocked before modifying.