-
Notifications
You must be signed in to change notification settings - Fork 231
Rest parameters and spread operator #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rest parameters and spread operator #116
Conversation
lizzie136
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hola @gndelia ! Gracias por la traducción, hay algunos pequennos cambios que necesitaría antes de poder unirlo a la traducción.
| # Parámetros Rest y operador Spread | ||
|
|
||
| Many JavaScript built-in functions support an arbitrary number of arguments. | ||
| Muchas funciones nativas de JavaScript soportan un numero arbitrario de argumentos. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
número
| - `Math.max(arg1, arg2, ..., argN)` -- returns the greatest of the arguments. | ||
| - `Object.assign(dest, src1, ..., srcN)` -- copies properties from `src1..N` into `dest`. | ||
| - ...and so on. | ||
| - `Math.max(arg1, arg2, ..., argN)` -- retorna el argumento mas grande. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
más grande o mayor
| - ...and so on. | ||
| - `Math.max(arg1, arg2, ..., argN)` -- retorna el argumento mas grande. | ||
| - `Object.assign(dest, src1, ..., srcN)` -- copia las propiedades de `src1..N` en `dest`. | ||
| - ...y otros mas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
más
| ``` | ||
|
|
||
| There will be no error because of "excessive" arguments. But of course in the result only the first two will be counted. | ||
| Aqui no habrá ningun error por "exceso" de argumentos. Pero, por supuesto, en el resultado solo los dos primeros serán tenidos en cuenta. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ningún,
En la segunda frase creo que sería solo los dos primeros serán tomados en cuenta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lo cambié, pero creo que ambas formas son válidas.
| ``` | ||
|
|
||
| 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, no matter their total number. | ||
| Antiguamente, los parámetros rest no existían en el lenguaje, y usar `arguments` era la unica manera de obtener todos los argumentos de una función, sin importar la cantidad de ellos. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
única
| Antiguamente, los parámetros rest no existían en el lenguaje, y usar `arguments` era la unica manera de obtener todos los argumentos de una función, sin importar la cantidad de ellos. | ||
|
|
||
| And it still works, we can use it today. | ||
| Y aun funciona, podemos usarlo hoy en día. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aún
| - When `...` is at the end of function parameters, it's "rest parameters" and gathers the rest of the list of arguments into an array. | ||
| - When `...` occurs in a function call or alike, it's called a "spread operator" and expands an array into a list. | ||
| - Cuando `...` se encuentra al final de los parámetros de una funcion, son los "parámetros rest" y recogen el resto de la lista de argumentos en un array. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
función
|
Please make the requested changes. After it, add a comment "/done". |
aecb287 to
525052a
Compare
|
/done |
|
@lizzie136 apliqué las sugerencias. Gracias! |
525052a to
e9fbd56
Compare
joaquinelio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
puse varios acentos, ya fue revisado por lizz
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md
Outdated
Show resolved
Hide resolved
|
Please make the requested changes. After it, add a comment "/done". |
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
…article.md Co-authored-by: joaquinelio <joaquinelio@gmail.com>
|
/done |
lizzie136
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
un acento...
Translation of Rest parameters and spread operator article