Skip to content

Documentation / @ripl/3d / typeIsVector2

Function: typeIsVector2() ​

typeIsVector2(value): value is Vector2

Defined in: 3d/src/math/vector2.ts:59

Type guard that checks whether a value is a Vector2 tuple.

Parameters ​

ParameterType
valueunknown

Returns ​

value is Vector2