Tweet · 3 Aug 2020, 20:50 UTC

Replying to @tobie

Totally! In the same way you want to check that your return value is roughly equal to a boolean before using it in a conditional. You never when JavaScript might change the semantics of `if`.