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

    Function remove

    • Returns a new flag box with the specified flags removed (bitwise AND NOT). Idempotent: removing an unset flag leaves the bits unchanged.

      Type Parameters

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

      Parameters

      Returns Flag<TFlags, TBit, TBrand>

      if any name is not registered.

      const box = registry.of("read", "write", "execute");
      const result = remove(box, "write");
      result.has("read"); // true
      result.has("write"); // false
      result.has("execute"); // true