TypeScript Collections is a fully tested library of generic data structures for TypeScript and JavaScript applications. It provides linked lists, dictionaries, trees, stacks, queues, sets, bags, heaps, and priority queues. Generic typing lets editors provide autocomplete while the compiler checks the types stored in each collection. The package supports ES module imports, TypeScript require syntax, CommonJS, browser scripts, and Universal Module Definition builds. It also includes array utilities, customizable object equality through string conversion, and a default dictionary inspired by Python. Broad browser and Node.js compatibility make it a practical option for projects that need classic collections beyond native arrays and objects.
Features
- Generic data structures
- Dictionaries and linked lists
- Stacks and queues
- Trees heaps and priority queues
- UMD and CommonJS support
- Browser and Node.js compatibility