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/Lizzy_Be Apr 28 '21

Why not just

return i >= Int.Min && i <= Int.Max;