!! Converts any value to a boolean value
> !!null false > !!true true > !!{} true > !!false false
If falsey , then the result will be false . If it is truthy , the result will be true .
Moreover, the third ! inverts the converted value, so the above examples become:
> !!!null true > !!!true false > !!!{} false > !!!false true
Georgi-it
source share