Type.isWorld
Returns true if the value is a World instance.
Returns true if the value is a World instance.
Use when validating optional world arguments to Entity.new or custom helpers.
isWorld = Type.isWorld( t )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
t |
any | Object to check |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
isWorld |
boolean |