r/badcode • • Nov 04 '21

js a real thinker

Post image
78 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/lanerdofchristian Nov 04 '21

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

Still:

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