isinstance
Checks for an instance-like table.
Syntax
Signature
isinstance(Value: any) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Value | any | Value to inspect. |
Returns
| Type | Description |
|---|---|
boolean | Whether Value passes the table and _id check. |
Notes
Checks whether Value is a table with a non-nil _id field. This is a structural check and can also return true for an ordinary table that supplies an _id.
Example
Luau
local Result = isinstance(42)
print(Result)