Returns a new flag box with the specified flags added (bitwise OR). Idempotent: adding an already-set flag leaves the bits unchanged.
if any name is not registered.
const box = registry.of("read");const result = add(box, "write", "execute");result.has("read"); // trueresult.has("write"); // trueresult.has("execute"); // true Copy
const box = registry.of("read");const result = add(box, "write", "execute");result.has("read"); // trueresult.has("write"); // trueresult.has("execute"); // true
Returns a new flag box with the specified flags added (bitwise OR). Idempotent: adding an already-set flag leaves the bits unchanged.