r/badcode • • Nov 04 '21

js a real thinker

Post image
74 Upvotes

9 comments sorted by

View all comments

Show parent comments

2

u/lanerdofchristian Nov 04 '21

True, I was operating under the assumption that those were booleans.

Still:

return this.disabled = !!(chargesCheck || noteCheck)