Not so much of a problem, but rather that for loops carry higher cognitive overload, whereas map or filter is composable and easier to comprehend (e.g. treating it as data pipeline).
So there is definitely a tradeoff, readability vs performance.
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.
Missed the reply notification 😬
Not so much of a problem, but rather that for loops carry higher cognitive overload, whereas
map
orfilter
is composable and easier to comprehend (e.g. treating it as data pipeline).So there is definitely a tradeoff, readability vs performance.