Skip to content

Documentation / @ripl/core / typeIsPoint

Function: typeIsPoint() ​

typeIsPoint(value): value is Point

Defined in: packages/core/src/math/geometry.ts:224

Type guard that checks whether a value is a Point (a two-element array).

Parameters ​

ParameterType
valueunknown

Returns ​

value is Point