jsh
jshashtable
npm i jshashtable
jsh

jshashtable

Port of jshashtable as nodejs package. jshashtable is a standalone implementation of hash table in JavaScript. It associates keys with values, and allows any object to be used as the key (unlike JavaScript's built-in Object, which only allows strings as property names).

by Tim Down

0.1.0 (see all)License:Apache-2.0TypeScript:Not FoundCategories:Vanilla JavaScript Hash Table
npm i jshashtable
Readme

JSHashtable for nodejs

PLEASE NOTE NodeJS now supports Map which achieves natively what this library attempts to do.

Port of jshashtable as nodejs package. jshashtable is a standalone implementation of hash table in JavaScript. It associates keys with values, and allows any object to be used as the key (unlike JavaScript's built-in Object, which only allows strings as property names).

Original website: http://www.timdown.co.uk/jshashtable/

Installation:

npm install jshashtable

Usage:

var Hashtable = require('jshashtable');
var typesHash = new Hashtable();

typesHash.put("A string", "string");
typesHash.put(1, "number");

var o = {};
typesHash.put(o, "object");

console.log( typesHash.get(o) ); // "object"

Downloads/wk

428

GitHub Stars

4

LAST COMMIT

7yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.1.0
latest
9yrs ago
No tutorials found
Add a tutorial