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

    Function hasAll

    • Returns true only if the flag box contains ALL of the specified flags.

      Type Parameters

      • TFlags extends string
      • TBit extends Bit
      • TBrand extends string | symbol

      Parameters

      Returns boolean

      const box = registry.of("read", "write");
      hasAll(box, "read", "write"); // true
      hasAll(box, "read", "execute"); // false — "execute" is missing