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

    Function hasNone

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

      Type Parameters

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

      Parameters

      Returns boolean

      const box = registry.of("read");
      hasNone(box, "write", "admin"); // true — neither is set
      hasNone(box, "read", "write"); // false — "read" is set