Skip to content

forEach does not modify the array #2

@gezeta-id

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)

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