Returns true if every flag in left is also set in right (left ⊆ right). An empty box is a subset of any box, including another empty box.
true
left
right
if boxes belong to different registry instances.
const a = registry.of("read");const b = registry.of("read", "write");isSubsetOf(a, b); // true — all of a's flags are in bisSubsetOf(b, a); // false — "write" is not in a Copy
const a = registry.of("read");const b = registry.of("read", "write");isSubsetOf(a, b); // true — all of a's flags are in bisSubsetOf(b, a); // false — "write" is not in a
Returns
trueif every flag inleftis also set inright(left ⊆ right). An empty box is a subset of any box, including another empty box.