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

Method equals

packages/react-stately/src/virtualizer/Size.ts:32–34  ·  view source on GitHub ↗

* Returns whether this size is equal to another one.

(other: Size)

Source from the content-addressed store, hash-verified

30 * Returns whether this size is equal to another one.
31 */
32 equals(other: Size): boolean {
33 return this.width === other.width && this.height === other.height;
34 }
35
36 /**
37 * The total area of the Size.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected