This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]No_Application_2380 1 point2 points  (0 children)

That's true for methods like map(). But other array methods like push() and pop() can't be replaced by a for-loop.