Computes the area of the intersection of two rectangles.
npm install rectangle-overlap

Fastly compute the intersection of two rectangles.
``js
const intersection = require("rectangle-overlap");
let rect1 = {x: 0, y: 0, width: 10, height: 10};
let rect2 = {x: 2, y: 3, width: 42, height: 42};
const overlap = intersection(rect1, rect2);
if (overlap) {
console.log(The rectangles overlap over an area of ${overlap.area});Intersection coordinates: x=${overlap.x}, y=${overlap.y}, width=${overlap.width}, height=${overlap.height}
console.log(
,``
)
} else {
console.log("The rectangles do not overlap");
}