let mySet = new Set();

let animal = {name: 'Cat'};
let car = {name: 'Honda CRV'};
let game = {name: 'Overwatch'};
let band = {name: '0.1g no Gosan'};

mySet.add(animal);
mySet.add(car);
mySet.add(car);
mySet.add(car);
mySet.add(game);
mySet.add(band);

console.log(mySet.has(band));
//true

console.log(mySet.has({name: 'Overwatch'}));
//false

mySet.forEach((value, sameValue, entireSet) => {
  console.log(value.name);
});
//Cat, Honda CRV, Overwatch, 0.1g no Gosan

mySet.delete(car);

console.log(mySet.size);
//3

mySet.clear();
console.log(mySet.size);
//0

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.