Sets

A Set is a new object type in ES6 that represents a data structure for a collection of distinct values. Each value in a Set is unique and cannot be duplicated. A value in a Set can be anything - a primitive like boolean or string, or an object or array.

JsFiddle Example

Last updated