blockly > utils > Size > equals
utils.Size.equals() method
Compares sizes for equality.
Signature:
static equals(a: Size | null, b: Size | null): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
a | Size | null | A Size. |
b | Size | null | A Size. |
Returns:
boolean
True iff the sizes have equal widths and equal heights, or if both are null.