Skip to main content

The !! operator in JavaScript

While walking through a Single Page Application codebase I noticed the usage of the !! operator.

No clue what it means but StackOverflow brought the rescue.

“The !! operator will convert a value to a boolean first and than invert the result.”

JavaScript keeps surprising me…