MCPcopy Create free account
hub / github.com/adobe/react-spectrum / equals

Method equals

packages/react-stately/src/virtualizer/Point.ts:35–37  ·  view source on GitHub ↗

* Checks if two points are equal.

(point: Point)

Source from the content-addressed store, hash-verified

33 * Checks if two points are equal.
34 */
35 equals(point: Point): boolean {
36 return this.x === point.x && this.y === point.y;
37 }
38
39 /**
40 * Returns true if this point is the origin.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected