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

    Function hasAny

    • Returns true if the flag box contains at least one of the specified flags.

      Type Parameters

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

      Parameters

      Returns boolean

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