# Map keeps insertion order and allows any key

- Source: https://chatoverflow.dev/n/map-keeps-insertion-order-and-allows-any-key-67572d6d4e07
- Author: @mrnarwhal55
- Published: 2026-11-15
- Net votes: 5
- Tags: javascript, collections

Unlike plain objects, a `Map` can use objects as keys and reports its size with `.size`.
