Returns a new flag box with every flag that is set in any of the input boxes (bitwise OR).
if boxes belong to different registry instances.
const a = registry.of("read", "write");const b = registry.of("write", "execute");const result = union(a, b);result.has("read"); // trueresult.has("write"); // trueresult.has("execute"); // trueresult.has("admin"); // false Copy
const a = registry.of("read", "write");const b = registry.of("write", "execute");const result = union(a, b);result.has("read"); // trueresult.has("write"); // trueresult.has("execute"); // trueresult.has("admin"); // false
Returns a new flag box with every flag that is set in any of the input boxes (bitwise OR).