Skip to content

Instantly share code, notes, and snippets.

@mateusmarquezini
Created January 19, 2019 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateusmarquezini/c4670a2978c7321ce0eb3ec16f7aaf97 to your computer and use it in GitHub Desktop.
Save mateusmarquezini/c4670a2978c7321ce0eb3ec16f7aaf97 to your computer and use it in GitHub Desktop.
let setDados = new Set()
setDados.add(1)
setDados.add(2)
setDados.add(3)
setDados.delete(1)
for (valor of setDados){
console.log(valor) // 2, 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment