JavaScript Map & Set
Map and Set collection methods. This category documents 30 JavaScript map & set entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: Map.prototype.set(), Map.prototype.get(), Map.prototype.has(), Map.prototype.delete(), Map.prototype.clear(), Map.prototype.size, Map.prototype.keys(), Map.prototype.values(), Map.prototype.entries(), Map.prototype.forEach(), Set.prototype.add(), Set.prototype.has(), Set.prototype.delete(), Set.prototype.clear(), Set.prototype.size, Set.prototype.values(), Set.prototype.keys(), Set.prototype.entries(), Set.prototype.forEach(), Set.prototype.difference(), Set.prototype.intersection(), Set.prototype.union(), Set.prototype.isSubsetOf(), WeakMap.prototype.set(), WeakMap.prototype.get(), WeakSet.prototype.add(), Map.groupBy(), Set.prototype.isSupersetOf(), Set.prototype.isDisjointFrom(), Set.prototype.symmetricDifference(). Not sure which method you need? Map.prototype.set() and Map.prototype.get() are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.