What is the !! (not not) operator in JavaScript?

added by JavaScript Kicks
3/4/2019 4:00:24 AM

1338 Views

The other day I was rolling through some JavaScript to figure out how a 3rd party library ticked. As I scanned the lines of code I came across a line like the following: value = !!value; Unless you have been using JavaScript for a while this may look like some advanced VooDoo.


0 comments