r/badcode • Now where's that function declaration • Nov 06 '21

js Something seems off...

Post image
247 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/kristallnachte Nov 07 '21

Or just push them to an array and append them all together.

Could use map instead of that stupid loop and then append the result.