Y
Hacker News
new
|
ask
|
show
|
jobs
by
panzerboiler
1134 days ago
Because a Map
is
an Object. It has properties and methods. The only way to provide a safe and clean namespace for your keys is to provide an explicit API. It also supports keys that can be not only strings or symbols.