Priority Queue

JSON →
library 2.6.0 ·javascript
verified Jun 7, 2026

A standalone binary heap-based priority queue with min/max modes, part of the data-structure-typed collection. Version 2.6.0 is the latest stable release, published under a weekly cadence. Ships TypeScript types and supports both ES modules and CommonJS. Differentiators include configurable comparators, heapify static method, clone, DFS traversal, and sort. Lightweight (<5 KB min+gzip) and suitable for scheduling, graph algorithms, and triage systems.