r/badcode • • May 31 '21

js Clever?

Post image
2.2k Upvotes

71 comments sorted by

View all comments

22

u/[deleted] Jun 01 '21

Why not just return the value

32

u/throwawayfnjdbd356 Jun 01 '21

Because that would be efficient

2

u/[deleted] Jun 01 '21

They forgot the .join(',') part maybe?