Created
March 12, 2019 01:59
-
-
Save ferfabricio/023e3843531eae438c1392a788b78506 to your computer and use it in GitHub Desktop.
Spread operator
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
const habilidadesProgramacao = [ | |
'Testes', | |
'Baixa complexidade', | |
'Código limpo' | |
] | |
const habilidadesGerais = [ | |
'Comunicação', | |
'Pontualidade' | |
] | |
const habilidades = [ | |
...habilidadesProgramacao, | |
...habilidadesGerais | |
] | |
console.log(habilidades) | |
// Resultado | |
// [ 'Testes', | |
// 'Baixa complexidade', | |
// 'Código limpo', | |
// 'Comunicação', | |
// 'Pontualidade' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment