alhassy / alhassy/JavaScriptCheatSheet

forEach does not modify the array

Aberta
#2 1 comentário 0 reações 0 responsáveis Ver no GitHub
help wanted
Linguagem predominante
Sem dados de linguagem
Estrelas
221
Forks
23
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

In the subsection `Array Methods`:

> With the exception of `forEach`, the above functions do not modify the array they are given.

`forEach` behaves _exactly_ in the same manner as the rest of those functions. None of them, `forEach` included, modifies the original array.

(But also none of them can prevent that _you_ change it inside the iterating function)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.