Returns true if the flag box contains at least one of the specified flags.
true
const box = registry.of("read");hasAny(box, "read", "admin"); // true — "read" is sethasAny(box, "write", "admin"); // false — neither is set Copy
const box = registry.of("read");hasAny(box, "read", "admin"); // true — "read" is sethasAny(box, "write", "admin"); // false — neither is set
Returns
trueif the flag box contains at least one of the specified flags.