In 99% of cases, the performance difference will be too small to matter. The more important argument for forEach (or for... of) in those 99% of cases is that it's explicit about what it's doing.
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.
In 99% of cases, the performance difference will be too small to matter. The more important argument for
forEach
(orfor... of
) in those 99% of cases is that it's explicit about what it's doing.