Returns true only if the flag box contains ALL of the specified flags.
true
const box = registry.of("read", "write");hasAll(box, "read", "write"); // truehasAll(box, "read", "execute"); // false — "execute" is missing Copy
const box = registry.of("read", "write");hasAll(box, "read", "write"); // truehasAll(box, "read", "execute"); // false — "execute" is missing
Returns
trueonly if the flag box contains ALL of the specified flags.