 In JavaScript (see also JSON), all objects behave as associative arrays with string-valued keys, while the Map and WeakMap types take arbitrary objects as keys.In Lua, they are used as the primitive building block for all data structures.In Visual FoxPro, they are called "Collections".