Skip to content

forEach does not modify the array #2

Description

@gezeta-id

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions