Returns true if the two flag boxes have at least one flag in common.
true
if boxes belong to different registry instances.
const a = registry.of("read", "write");const b = registry.of("write", "execute");overlaps(a, b); // true — "write" is sharedoverlaps(a, registry.of("admin")); // false — no common flags Copy
const a = registry.of("read", "write");const b = registry.of("write", "execute");overlaps(a, b); // true — "write" is sharedoverlaps(a, registry.of("admin")); // false — no common flags
Returns
trueif the two flag boxes have at least one flag in common.