1.0.1 • Published 2 years ago
@amaui/hash-table v1.0.1
Getting started
Add
// yarn
yarn add @amaui/hash-table
// npm
npm install @amaui/hash-table
Use cases
- Indexing data
- Caching
- Storage for data, for efficient quering
- Storing relationships between data
- etc.
Use
import AmauiHashTable from '@amaui/hash-table';
// Make a new hash table instance
const amauiHashTable = new AmauiHashTable();
// Add values
amauiHashTable.set('a', 14).set('a1', 114);
amauiHashTable.get('a');
// 14
amauiHashTable.get('a14');
// undefined
// Remove
amauiHashTable.remove('a');
// true
amauiHashTable.get('a');
// undefined
Dev
Install
yarn
Test
yarn test
Prod
Build
yarn build
Docs
Might be soon...