Great tool, but you really don't need it all the time, the array methods that mutate the original array has been kept under the "Modifying an Array" Section.
Also from my experience, I have always changed the original array with the push method in production, it has always end up being a solution without causing effect,. I have also seen it mutating the array in source. But you did make a point there which I understand.
Then for the test, I totally agree with you, I use the filter or forEach keyword myself. But for now I am doing a lot of research on speed test. Something that I noticed that I should drop here is this, the speed of the for loop was not because of the for loopz but because of the mathematics used in constructing the for loop. The same is not the case for a for in loop.
Thanks for the comment.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great tool, but you really don't need it all the time, the array methods that mutate the original array has been kept under the "Modifying an Array" Section.
Also from my experience, I have always changed the original array with the push method in production, it has always end up being a solution without causing effect,. I have also seen it mutating the array in source. But you did make a point there which I understand.
Then for the test, I totally agree with you, I use the filter or forEach keyword myself. But for now I am doing a lot of research on speed test. Something that I noticed that I should drop here is this, the speed of the for loop was not because of the
for
loopz but because of the mathematics used in constructing the for loop. The same is not the case for afor in
loop.Thanks for the comment.