瀏覽代碼

Fixes bad has implementation

main
Eric Amodio 4 年之前
父節點
當前提交
cfca480725
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/system/searchTree.ts

+ 2
- 1
src/system/searchTree.ts 查看文件

@ -200,7 +200,8 @@ export class TernarySearchTree {
}
has(key: K): boolean {
return Boolean(this._getNode(key));
const node = this._getNode(key);
return !(node?.value === undefined && node?.mid === undefined);
}
delete(key: K): void {

Loading…
取消
儲存