js remove from set code example
Example: remove from set javascript
// Create new set
const animals = new Set();
// Add to set
animals.add('cat');
animals.add('dog');
// Remove from set
animals.delete('cat'); // returns true
animals.delete('dog'); // returns true
animals.delete('horse'); // returns false