False: Why should I use !!! instead! (3 instead of 1 explosion)

Is there any difference between !!!and !?

Found in jasmine's source code toBeFalsy.

Results from chrome devtools

!!!undefined
true
!undefined
true
!!!null
true
!null
true
!!!0
true
!0
true
+4
source share
1 answer

Is there any difference between !!! and!?

No. They are the same.

Why should I use !!! instead! (3 instead of 1 explosion)

To annoy programmers

+8
source

All Articles