Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/Heap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Heap {
} else if (propTypes[name] === Number) {
return (Number(value) as unknown) as ValueOf<Props>;
}
if (this.dataMap[value]) {
if (Object.prototype.hasOwnProperty.call(this.dataMap, value)) {
// 放在堆中的引用类型数据
const heapValue = this.dataMap[value];
// 取出即回收
Expand Down