@blackglory/structures 0.10.6 → 0.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17020,7 +17020,9 @@ class BitSet {
17020
17020
  delete(value) {
17021
17021
  var _a;
17022
17022
  const [index, mask] = this.getPosition(value);
17023
- this.array.set(index, ((_a = this.array.get(index)) !== null && _a !== void 0 ? _a : 0) & ~mask);
17023
+ const element = ((_a = this.array.get(index)) !== null && _a !== void 0 ? _a : 0);
17024
+ this.array.set(index, element & ~mask);
17025
+ return (element & mask) === mask;
17024
17026
  }
17025
17027
  clear() {
17026
17028
  for (let i = this.array.length; i--;) {