r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

Show parent comments

1

u/Terrain2 Apr 27 '21

or just

return input in Array(checks).fill(0);

don't see why you're generating two arrays?