JSFiddle - React, Tailwind, and code Playground

by Emily Humphrey

JavaScript

// Create a Set
const letters = new Set([{name: "a"},{name: "b"},{name: "c"}]);
const a = {name: "a"};

// List all entries
let text = "";
letters.forEach (function(value) {
  text += value;
})

console.log( letters.has( a ) )