Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

calvin-map

0.1.0 • Public • Published

Map

A simple ES6 map implimentation, hopefully performant, mainly for learning purposes.

Currently uses a linked list for storing the values, this is likely either very good or very bad performance wise.

For keys that are comparable by value (e.g. not objects), we use a dictionary to speed up lookup, the results for numbers when adding 10,000 values and when addding 100 values. In other words there is some overhead but it pays for itself.

Keywords

none

install

npm i calvin-map

Downloadsweekly downloads

4

version

0.1.0

license

ISC

last publish

collaborators

  • avatar