whilst array.map and array.forEach are unarguably more readable than for loops, aren't for loops still considerably faster in most browsers?
I was thinking of the same. Found this relevant reddit discussion.
I think this is something browsers could optimize. Or probably they already do. I wonder if there are any benchmarks around.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
whilst array.map and array.forEach are unarguably more readable than for loops, aren't for loops still considerably faster in most browsers?
I was thinking of the same. Found this relevant reddit discussion.
I think this is something browsers could optimize. Or probably they already do.
I wonder if there are any benchmarks around.