bitwise-flag - v2.1.0
    Preparing search index...

    Function isSupersetOf

    • 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.

      Type Parameters

      • TFlags extends string
      • TBit extends Bit

      Parameters

      Returns boolean

      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 flags
      isSupersetOf(b, a); // false — b lacks "write"