Performs the specified action for each (element / pair of elements) in the Map
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each (element / pair of elements) in the array.
Returns a boolean for whether the given key exists in the Map
Returns true if empty, otherwise false.
Returns an array of the keys in this map
Returns the number of elements in the Map
Returns an array of the values in this map
A Map object which cannot be written to. The Map object holds key-value pairs but doesn't remember the original insertion order of the keys (like JS would). Any value (both objects and primitive values) may be used as either a key or a value. Maps are the best choice for dynamic indexing/newindexing, whereas Objects are better for explicit indexing.
Example