A Map object is really similar to an object except that its keys can be any type, while an object only has strings as keys. It also has a nice API for working with them.
Set
A Set object is a collection of unique values. The API is really similar to the Map
Setobjects are collections of values. You can iterate through the elements of a set in insertion order. A value in the Setmay only occur once; it is unique in the Set's collection.