Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Created January 13, 2020 14:48
Show Gist options
  • Select an option

  • Save cesarkohl/98a084bf0845c9f74cf5ad54a1e8d2a1 to your computer and use it in GitHub Desktop.

Select an option

Save cesarkohl/98a084bf0845c9f74cf5ad54a1e8d2a1 to your computer and use it in GitHub Desktop.
var songs = new Set ([
 'song1', 'song2', 'song3'
]);
songs.clear ();
for (var music of songs) {
 console.log (music); // anything
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment