If ("") results false,
so why isn't (true && "") false
instead of ""
(empty string)
.
And if("string") results true
, so why isn't (true && "string") true
instead of 'string'
.
Same goes for objects,
For example (true && {key: 'val'})
is not true, it's {key: 'val'}