Skip to content

Commit 6411cef

Browse files
authored
Update article.md
1 parent a0baee7 commit 6411cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ alert( str ); // Bilbo;Gandalf;Nazgul
537537

538538
### reduce/reduceRight
539539

540-
Cuando necesitamos iterar sobre un array -- podemos usar `forEach`, `for` or `for..of`.
540+
Cuando necesitamos iterar sobre un array podemos usar `forEach`, `for` o `for..of`.
541541

542-
Cuando necesitamos iterar y devolver un valor por cada elemento -- podemos usar `map`.
542+
Cuando necesitamos iterar y devolver un valor por cada elemento podemos usar `map`.
543543

544544
Los métodos [arr.reduce](https://developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Objetos_globales/Array/reduce) y [arr.reduceRight](https://developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Objetos_globales/Array/reduceRight) también pertenecen a ese grupo de acciones pero son un poco más complejos. Se los utiliza para calcular un único valor a partir del array.
545545

0 commit comments

Comments
 (0)