enter code here
I have often seen this --
if(!!somevalue)
I don't know why do people use !!
and instead they could just write this --
if(somevalue)
because as far as I know
somevalue === !!somevalue
I do not have any issue but I am just curious as in what is the reason behind it?