@blackglory/structures 0.6.3 → 0.6.4
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/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1 -1
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1 -1
- 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 +1 -1
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1 -1
- 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-set.js +2 -1
- package/lib/es2015/sparse-set.js.map +1 -1
- package/lib/es2018/sparse-set.js +2 -1
- package/lib/es2018/sparse-set.js.map +1 -1
- package/package.json +1 -1
package/dist/es2018/index.mjs
CHANGED
|
@@ -9268,7 +9268,7 @@ class SparseSet {
|
|
|
9268
9268
|
}
|
|
9269
9269
|
has(value) {
|
|
9270
9270
|
// 跟一般的实现不同, 不需要访问values数组.
|
|
9271
|
-
return this.valueToValueIndex[value]
|
|
9271
|
+
return es2018$2.isntUndefined(this.valueToValueIndex[value]);
|
|
9272
9272
|
}
|
|
9273
9273
|
add(value) {
|
|
9274
9274
|
if (!this.has(value)) {
|