@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.
- package/README.md +4 -0
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +6 -0
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +6 -0
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +6 -0
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +6 -0
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/sparse-map.d.ts +1 -0
- package/lib/es2015/sparse-map.js +3 -0
- package/lib/es2015/sparse-map.js.map +1 -1
- package/lib/es2015/typed-sparse-map.d.ts +1 -0
- package/lib/es2015/typed-sparse-map.js +3 -0
- package/lib/es2015/typed-sparse-map.js.map +1 -1
- package/lib/es2018/sparse-map.d.ts +1 -0
- package/lib/es2018/sparse-map.js +3 -0
- package/lib/es2018/sparse-map.js.map +1 -1
- package/lib/es2018/typed-sparse-map.d.ts +1 -0
- package/lib/es2018/typed-sparse-map.js +3 -0
- package/lib/es2018/typed-sparse-map.js.map +1 -1
- package/package.json +1 -1
package/dist/es2015/index.umd.js
CHANGED
|
@@ -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;
|