This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects | |
Features : | |
* Direct acces too elements throught .get(key) | |
* fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 ) | |
*/ | |
class HashMap { | |
public length: number = 0; |