Set object

A built-in JavaScript collection of unique values.

In more detail

Adding a value that is already present has no effect. Like Map, a Set keeps its members alive; WeakSet is the version that does not.

Related terms

Taught in

References