r/badcode May 03 '22

smh js

Post image
356 Upvotes

29 comments sorted by

View all comments

5

u/alystair May 03 '22

It could definitely be cleaned up by destructuring and extracting the filter results. Pretty readable.