Queue-List

JSON →
library 1.1.8 ·javascript
verified Jun 7, 2026

A lightweight JavaScript queue data structure with O(1) time complexity for all operations. Version 1.1.8, stable. Provides a simple, minimal API (enqueue, dequeue, peek, isEmpty, size, clear) and custom console.log formatting for Queue instances. Unlike many other queue implementations that use arrays (O(n) dequeue), this library uses a linked-list-based approach for guaranteed constant-time performance. Suitable for both Node.js and browser environments. No dependencies.