Returns true if both flag boxes have identical bits AND belong to the same registry instance. Boxes from different registry instances are never equal, even when their bits are identical.
true
const a = registry.of("read", "write");const b = registry.of("read", "write");equals(a, b); // trueconst other = NumberFlagRegistry.from("read", "write");equals(a, other.of("read", "write")); // false — different registry instance Copy
const a = registry.of("read", "write");const b = registry.of("read", "write");equals(a, b); // trueconst other = NumberFlagRegistry.from("read", "write");equals(a, other.of("read", "write")); // false — different registry instance
Returns
trueif both flag boxes have identical bits AND belong to the same registry instance. Boxes from different registry instances are never equal, even when their bits are identical.