Created
January 19, 2019 15:43
-
-
Save mateusmarquezini/0acf4375ecdc41b7d42bf298398ddb91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let setDados = new Set() | |
let funcao = function() {} | |
let obj = {} | |
setDados.add(1) | |
setDados.add(1) | |
setDados.add(2) | |
setDados.add(3) | |
setDados.add(3) | |
setDados.add(4) | |
setDados.add(funcao) | |
setDados.add(obj) | |
for (valor of setDados){ | |
console.log(valor) // 1, 2, 3, 4, [Function], {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment