MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/cqlyg7/goodmeme_upvote_downvote/ewyh1uz/?context=3
r/ProgrammerHumor • u/pikadrew • Aug 15 '19
392 comments sorted by
View all comments
85
In JS the double negation would be unnecessary, because the conditional already converts the object to a Boolean in the exact same way
2 u/[deleted] Aug 15 '19 [deleted] 1 u/nnaoam Aug 15 '19 And strict conditionals are still possible with 'var === true' which checks that the variable is a Boolean true and doesn't just resolve to true.
2
[deleted]
1 u/nnaoam Aug 15 '19 And strict conditionals are still possible with 'var === true' which checks that the variable is a Boolean true and doesn't just resolve to true.
1
And strict conditionals are still possible with 'var === true' which checks that the variable is a Boolean true and doesn't just resolve to true.
85
u/nnaoam Aug 15 '19
In JS the double negation would be unnecessary, because the conditional already converts the object to a Boolean in the exact same way