In Javascript, is
return (someBooleanValue == true)
necessarily always the same as
return someBooleanValue
?
In Javascript, is
return (someBooleanValue == true)
necessarily always the same as
return someBooleanValue
?
 
    
    Iff someBooleanValue is a boolean value, then yes.  For any other object/value, then no.
 
    
    If you assume that typeof someBooleanValue is 'boolean', then Yes these are equivalent (by pure boolean logic).
For everything else, they are not.
