1.1.0 • Published 2 years ago

@telegram.ts/collection v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@telegram.ts/collection

NPM Version Bot API NPM Downloads License

@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
# or
yarn add @telegram.ts/collection

Usage

import { Collection } from "@telegram.ts/collection";

// Create a new collection
const myCollection = new Collection<string, number>();

// Add items to the collection
myCollection.set("key1", 1);
myCollection.set("key2", 2);

// Retrieve an item from the collection
const value = myCollection.get("key1");
console.log(value); // Output: 1

// Iterate over the collection
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.

1.1.0

2 years ago

1.0.0

2 years ago

0.5.1

3 years ago

0.4.5

3 years ago

0.4.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago