Map
Definition
A built-in collection that stores key-value pairs where keys can be any type (not just strings). Maps maintain insertion order and provide O(1) lookup. Unlike plain objects, Maps don't have prototype pollution concerns.
Code Example
Javascript
Tip: Modify the code above and click “Run” to see the results