Skip to content
ConcordConcordConcord

Type.isComponent

Returns true if the value is a Component instance attached to an entity.

← Type

Returns true if the value is a Component instance attached to an entity.

Use when iterating entity fields or handling Entity:give component-instance overload.

isComponent = Type.isComponent( t )
Name Type Description
t any Object to check
Name Type Description
isComponent boolean