JSPM

@akarui/structures

2.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q6882F
  • License MIT

Abstract Data Structures That Make Storing data Much easy.

Package Exports

  • @akarui/structures

Readme

@akarui/Structures

A collection of data structures implemented in TypeScript that ease the storage and manipulation of data.

Installation

npm install @akarui/structures

Usage

//Typescript
import { Group } from '@akarui/structures';

const group = new Group<string,string>(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 cjs

const { Group } = require('@akarui/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

License

MIT