Tag Archives: hash table

JavaScript using objects as keys

If you ever wondered how associative arrays work or way are they called hashes in Ruby? The answer is hash tables, and if you look into the wikipedia article http://en.wikipedia.org/wiki/Hash_table, you can understand how they work and how simple they are. I will try to be quick and concise in the explanation: Introduction to Hash Tables […]

JavaScript Map class

Java like Map class for JavaScript, a wrapper arround JavaScript’s native key value hash tree storage inside objects. If you are familiar with Java Map this shouldn’t be news to you. The idea is this: enable the key value storage with some additional functionality, speed up iteration, and harvest the speed of native hash table […]