Is there a hashmap library for JavaScript?

后端 未结 8 1724
抹茶落季
抹茶落季 2021-02-14 10:35

In JavaScript, all Objects act a bit like hashmaps. However, the keys to these hashmaps must be strings. If they\'re not, they\'re converted with toString(). Tha

8条回答
  •  闹比i
    闹比i (楼主)
    2021-02-14 10:59

    This thread actually led me to find a bug in my current project. However, this is fixed now and my HashMap implementation in my project (https://github.com/Airblader/jsava) will do exactly what you described. Unlike jshashtable, there are no buckets.

提交回复
热议问题