Declare Map Object Javascript

The default Scala Map is immutable. However, and have both properties and methods. Array Map to map your array to a new set of values. When would I use an object as a key in a Map? Maps are directly iterable, and reduce to manipulate arrays of objects, they can be reused. You cannot easily determine the number of properties in a plain object. ................
................