Rest parameters and spread syntax by diogoosz · Pull Request #476 · javascript-tutorial/pt.javascript.info
Repository navigation
Rest parameters and spread syntax - #476
Merged
gabifs merged 3 commits into javascript-tutorial:master from diogoosz:translate-rest-parameters-spread Nov 21, 2026
Merged
Rest parameters and spread syntax #476 gabifs merged 3 commits into javascript-tutorial:master from diogoosz:translate-rest-parameters-spread
Conversation
diogoosz commented Nov 8, 2026
Copy link Copy Markdown
Contributor
Tradução do artigo "Rest parameters and spread syntax" para o português.
Conforme comentado na #1 .
diogoosz and others added 2 commits November 8, 2026 19:20
Translate "Rest parameters and spread syntax" article to Portuguese
b59b67f
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Fix gender agreement issues in rest/spread article
d6364a9
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>gabifs reviewed Nov 12, 2026
View reviewed changes
Comment thread 1-js/06-advanced-functions/02-rest-parameters-spread/article.md
Outdated
| ``` | ||
|
|
||
| In old times, rest parameters did not exist in the language, and using `arguments` was the only way to get all arguments of the function. And it still works, we can find it in the old code . | ||
| Antigamente, os parâmetros rest não existiam na linguagem, e usar `arguments` era a única forma de obter todos os argumentos da função. E ainda funciona, dá pra encontrar isso em código antigo . |
View reviewed changes
Comment thread 1-js/06-advanced-functions/02-rest-parameters-spread/article.md
Outdated
| Antigamente, os parâmetros rest não existiam na linguagem, e usar `arguments` era a única forma de obter todos os argumentos da função. E ainda funciona, dá pra encontrar isso em código antigo . | ||
|
|
||
| But the downside is that although `arguments` is both array -like and iterable, it's not an array . It does not support array methods, so we can't call `arguments.map(...)` for example . | ||
| Mas a desvantagem é que, embora `arguments` seja parecido com um array e também seja iterável, ele não é um array de verdade. Ele não suporta métodos de array, então não podemos chamar `arguments.map(...)` , por exemplo . |
View reviewed changes
Comment thread 1-js/06-advanced-functions/02-rest-parameters-spread/article.md
Outdated
| ## Copiar um array/ objeto | ||
|
|
||
| Remember when we talked about `Object.assign()` [ in the past ](info:object-copy#cloning-and-merging-object-assign)? | ||
| Lembra quando falamos sobre `Object.assign()` [ no passado ](info:object-copy#cloning-and-merging-object-assign)? |
View reviewed changes
Comment thread 1-js/06-advanced-functions/02-rest-parameters-spread/article.md
Outdated
| ## Resumo | ||
|
|
||
| When we see `"..."` in the code, it is either rest parameters or the spread syntax . | ||
| Quando vemos `"..."` no código, é ou um parâmetro rest ou a sintaxe spread. |
View reviewed changes
Comment thread 1-js/06-advanced-functions/02-rest-parameters-spread/article.md
| *!* | ||
| let objCopy = { ...obj }; // spread the object into a list of parameters | ||
| // then return the result in a new object | ||
| let objCopy = { ...obj }; // espalha o objeto numa lista de parâmetros |
Apply review feedback from @gabifs
fae3e57
- "dá pra" -> informal register dropped, matching the rest of the article - "parecido com um array" -> "semelhante a array", matching the term used in the summary and the rest of the tutorial - "no passado" (literal "in the past") -> "anteriormente", more natural as link text - Fix number: "é ou um parâmetro rest" / "é um 'parâmetro rest'" -> plural "parâmetros rest", matching the term used as the title and throughout the article Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 21, 2026
Copy link Copy Markdown
Contributor
Author
|
Obrigado, @gabifs ! Apliquei tudo: removi o registro coloquial ("dá pra"), "parecido com um array"→"semelhante a array" (consistente com o resumo), "no passado"→"anteriormente", e corrigi o número pra plural em "parâmetros rest" nas duas ocorrências. Deixei a imprecisão do "espalha o objeto numa lista de parâmetros" como está, já que o original em inglês tem a mesma imprecisão e você mencionou que manter fiel é aceitável nesse caso. |
bf191ff
into
javascript-tutorial : master
Nov 21, 2026
1 check passed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment