mirror of
https://github.com/thelounge/thelounge
synced 2024-12-28 21:33:08 +00:00
10 lines
253 B
JavaScript
10 lines
253 B
JavaScript
"use strict";
|
|
|
|
function anyIntersection(a, b) {
|
|
return a.start <= b.start && b.start < a.end ||
|
|
a.start < b.end && b.end <= a.end ||
|
|
b.start <= a.start && a.start < b.end ||
|
|
b.start < a.end && a.end <= b.end;
|
|
}
|
|
|
|
module.exports = anyIntersection;
|