A specialized array type that maintains heap properties and node indices. Extends the standard Array with a WeakMap to track node positions.
Array
WeakMap
The type of heap node.
Maps heap nodes to their current indices in the array.
A specialized array type that maintains heap properties and node indices. Extends the standard
Arraywith aWeakMapto track node positions.