isEqual
ts
function Rect.isEqual(a: Rect, b: Rect): booleanChecks if two rectangles are equal by comparing their position and dimensions.
Example
ts
Rect.isEqual(
{ left: 10, top: 20, width: 100, height: 50 },
{ left: 10, top: 20, width: 100, height: 50 },
);
// truets
pipe(
{ left: 10, top: 20, width: 100, height: 50 },
Rect.isEqual({ left: 10, top: 20, width: 100, height: 50 }),
);
// true