Is there a difference between !a
and a===null
in JavaScript?
I am working on a project where it is behaving differently.
I am not talking in terms of Boolean values though as !true
will not me same as true===null
if (!this.props.user)
is resulting to true,
where as if (this.props.user === null)
is resulting to false