If you only need strings as keys, then Object is the right choice.

JavaScript has Map and WeakMap for non-string keys, which is similar to
Flash Player's Dictionary:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap

Be aware that Map and WeakMap are relatively new in JavaScript. For
instance, it looks like IE11 has partial support (with full support in
Edge), but older versions of IE can't use it.

- Josh

On Thu, Feb 9, 2017 at 2:13 PM, Carlos Rovira <carlosrov...@apache.org>
wrote:

> Hi,
>
> we have some flash Dictionary replacement?
> If not what we could use instead? or what is the recommended approach?
>
> thanks!
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Reply via email to