DEV Community

Discussion on: What is the Double bang (!!) operator in JavaScript?

Collapse
 
jonrandy profile image
Jon Randy 🎖️

It isn't a double bang operator, it is using the ! operator twice. Also, since - as you rightly state - values already have truthy and falsey-ness, it is largely pointless to use this unless you really, really need a pure boolean (perhaps for building some JSON to send somewhere on another system that requires the correct type)