Skip to content

Instantly share code, notes, and snippets.

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

  • Save cesarkohl/6cff8bedcb956589cf7a489f52643a90 to your computer and use it in GitHub Desktop.

Select an option

Save cesarkohl/6cff8bedcb956589cf7a489f52643a90 to your computer and use it in GitHub Desktop.
var songs = new Set (['music1', 'music2']);
music.delete ('music1');
for (var music of songs) {
 console.log (music); // music2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment