@akarui/structures
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @akarui/structures

Weekly Downloads

291

Version

2.1.0

License

MIT

Unpacked Size

58.1 kB

Total Files

45

Last publish

Collaborators

  • usersatoshi
  • leref
  • akaruiteam