Returns a new flag box containing only flags that are set in ALL input boxes (bitwise AND).
if boxes belong to different registry instances.
const a = registry.of("read", "write");const b = registry.of("write", "execute");const result = intersection(a, b);result.has("read"); // falseresult.has("write"); // true — present in bothresult.has("execute"); // false Copy
const a = registry.of("read", "write");const b = registry.of("write", "execute");const result = intersection(a, b);result.has("read"); // falseresult.has("write"); // true — present in bothresult.has("execute"); // false
Returns a new flag box containing only flags that are set in ALL input boxes (bitwise AND).