@technobuddha/library
Version: 
A large library of useful functions
12 lines (11 loc) • 453 B
TypeScript
import { type Polygon } from './@types/geometry.ts';
/**
 * Determines if the provided object is a `Polygon`.
 *
 * A `Polygon` is defined as an array where every element satisfies the `isCartesian` predicate.
 * @param object - The value to test for polygon structure.
 * @returns `true` if the object is a `Polygon`, otherwise `false`.
 * @group Geometry
 * @category Polygon
 */
export declare function isPolygon(object: unknown): object is Polygon;