Skip to content

Documentation / @ripl/core / elementIsPolygon

Function: elementIsPolygon() ​

elementIsPolygon(value): value is Polygon

Defined in: packages/core/src/elements/polygon.ts:98

Type guard that checks whether a value is a Polygon instance.

Parameters ​

ParameterType
valueunknown

Returns ​

value is Polygon