Returns true if left contains every flag that is set in right (left ⊇ right). A full box is a superset of any box; an empty box is only a superset of another empty box.
true
left
right
if boxes belong to different registry instances.
const a = registry.of("read", "write");const b = registry.of("read");isSupersetOf(a, b); // true — a contains all of b's flagsisSupersetOf(b, a); // false — b lacks "write" Copy
const a = registry.of("read", "write");const b = registry.of("read");isSupersetOf(a, b); // true — a contains all of b's flagsisSupersetOf(b, a); // false — b lacks "write"
Returns
trueifleftcontains every flag that is set inright(left ⊇ right). A full box is a superset of any box; an empty box is only a superset of another empty box.