Type.isEntity
Returns true if the value is an Entity instance.
Returns true if the value is an Entity instance.
Use when accepting arbitrary tables that might be entities (e.g. world APIs, serializers).
isEntity = Type.isEntity( t )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
t |
any | Object to check |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
isEntity |
boolean |