@telegram.ts/collection

@telegram.ts/collection is a TypeScript library that provides a collection of utility classes and functions for managing collections of data. It offers a set of data structures optimized for various use cases, such as managing lists, maps, and sets efficiently.
Features
- Typed Collections: Benefit from TypeScript's type system with fully typed collections.
- Efficient Data Management: Efficiently manage collections of data with optimized data structures.
- Versatile Functionality: Access a wide range of utility functions for manipulating collections.
Installation
You can install @telegram.ts/collection via npm or yarn:
npm install @telegram.ts/collection
yarn add @telegram.ts/collection
Usage
import { Collection } from "@telegram.ts/collection";
const myCollection = new Collection<string, number>();
myCollection.set("key1", 1);
myCollection.set("key2", 2);
const value = myCollection.get("key1");
console.log(value);
myCollection.forEach((value, key) => {
console.log(`${key}: ${value}`);
});
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a GitHub issue or submit a pull request. Additionally, feel free to reach out to me on Telegram via my username @SempaiJS or on Discord using my username sempaika_chess.