blockly > utils > Coordinate > equals
utils.Coordinate.equals() method
Compares coordinates for equality.
Signature:
static equals(a?: Coordinate | null, b?: Coordinate | null): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
a | Coordinate | null | (Optional) A Coordinate. |
b | Coordinate | null | (Optional) A Coordinate. |
Returns:
boolean
True iff the coordinates are equal, or if both are null.