I saw this in a line of code for some javascript I inherited.
What does this mean?
msg is just an object. I am somewhat confused by the !!. Not sure why anyone would put this condition there
(!!msg ? true : false)
I saw this in a line of code for some javascript I inherited.
What does this mean?
msg is just an object. I am somewhat confused by the !!. Not sure why anyone would put this condition there
(!!msg ? true : false)