@blackglory/structures 0.10.11 → 0.10.12

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.
@@ -16504,6 +16504,9 @@
16504
16504
  values() {
16505
16505
  return this.indexToValue.values();
16506
16506
  }
16507
+ getInternalIndexOfKey(key) {
16508
+ return this.keyToIndex[key];
16509
+ }
16507
16510
  has(key) {
16508
16511
  // 跟一般的稀疏集实现不同, 不需要访问values数组.
16509
16512
  return key in this.keyToIndex;
@@ -16579,6 +16582,9 @@
16579
16582
  yield this.indexToValue.internalTypedArray[i];
16580
16583
  }
16581
16584
  }
16585
+ getInternalIndexOfKey(key) {
16586
+ return this.keyToIndex[key];
16587
+ }
16582
16588
  has(key) {
16583
16589
  const index = this.keyToIndex[key];
16584
16590
  return this.indexToKey[index] === key;