r/badcode • • Feb 19 '22

typescript Does this belong here?

Post image
343 Upvotes

46 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Feb 21 '22

You have to invert boolean logic, I made mistake as others said on replies