Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoijs/aoi.structures
Abstract Data Structures That Make Storing data Much easy.
https://github.com/aoijs/aoi.structures
data-structures structures typescript
Last synced: about 2 months ago
JSON representation
Abstract Data Structures That Make Storing data Much easy.
- Host: GitHub
- URL: https://github.com/aoijs/aoi.structures
- Owner: aoijs
- License: mit
- Created: 2021-10-10T09:48:14.000Z (about 3 years ago)
- Default Branch: v2
- Last Pushed: 2024-06-19T00:32:30.000Z (7 months ago)
- Last Synced: 2024-09-19T17:18:29.182Z (4 months ago)
- Topics: data-structures, structures, typescript
- Language: TypeScript
- Homepage: https://aoijs.github.io/aoi.structures/
- Size: 12.1 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @aoijs/aoi.structures
A collection of data structures implemented in TypeScript that ease the storage and manipulation of data.
## Installation
```bash
npm install @aoijs/aoi.structures
```## Usage
```typescript
//Typescript
import { Group } from '@aoijs/aoi.structures';const group = new Group(10); // Creates a group with a capacity of 10
group.set("Hello", "World"); // Sets the value of "Hello" to "World"
group.get("Hello"); // Returns "World"group.has("Hello"); // Returns true
group.delete("Hello"); // Deletes the value of "Hello"
group.has("Hello"); // Returns false```
```javascript
//Javascript cjsconst { Group } = require('@aoijs/aoi.structures');
const group = new Group(10); // Creates a group with a capacity of 10
group.set("Hello", "World"); // Sets the value of "Hello" to "World"
group.get("Hello"); // Returns "World"group.has("Hello"); // Returns true
group.delete("Hello"); // Deletes the value of "Hello"
group.has("Hello"); // Returns false
```## Documentation
[Documentation](https://aoijs.github.io/aoi.structures/)
## License
[MIT](./LICENSE)