clean up __ln property when remove node

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 6651877af9
commit 0e30a819ce

View File

@@ -93,6 +93,9 @@ class DoubleLinkedList {
current.next.previous = current.previous;
}
}
if (n.__ln) {
delete n.__ln;
}
this.length--;
}
}