Skip to content

Conversation

@gndelia
Copy link
Contributor

@gndelia gndelia commented Oct 23, 2019

Translation of Rest parameters and spread operator article

@CLAassistant
Copy link

CLAassistant commented Oct 23, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@lizzie136 lizzie136 left a 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.
Copy link
Member

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.
Copy link
Member

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
Copy link
Member

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.
Copy link
Member

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

Copy link
Contributor Author

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

función

@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@gndelia
Copy link
Contributor Author

gndelia commented Oct 30, 2019

/done

@gndelia
Copy link
Contributor Author

gndelia commented Oct 30, 2019

@lizzie136 apliqué las sugerencias. Gracias!

@gndelia gndelia force-pushed the 02-rest-parameters-spread-operator branch from 525052a to e9fbd56 Compare October 30, 2019 01:35
Copy link
Member

@joaquinelio joaquinelio left a 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

@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

vplentinax and others added 8 commits June 7, 2020 15:58
…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>
@vplentinax
Copy link
Contributor

/done

@lizzie136 lizzie136 self-requested a review June 13, 2020 19:10
Copy link
Member

@lizzie136 lizzie136 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

un acento...
@joaquinelio joaquinelio requested review from EzequielCaste and removed request for EzequielCaste June 15, 2020 19:39
@joaquinelio joaquinelio merged commit 3dcd7e6 into javascript-tutorial:master Jun 15, 2020
@gndelia gndelia deleted the 02-rest-parameters-spread-operator branch June 16, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants