isinstance

Checks for an instance-like table.

Syntax

Signature
isinstance(Value: any) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
ValueanyValue to inspect.

Returns

TypeDescription
booleanWhether 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)