I came across the !! (not not) operator in javascript as a way of converting a falsy/truthy value to inverted true/valse and then invert it to get the corresponding true/false. So apparently
!!("something")
and
Boolean("something")
are the same. Are there any differences between them? Which one is the preferred one?
I found some related questions ( What is the !! (not not) operator in JavaScript?) but they don't seem to address performance. I hope this is not a duplicate.