Is there any difference between !!!
and !
?
Found at jasmine source code in the toBeFalsy
matcher.
Results from chrome devtools
!!!undefined
true
!undefined
true
!!!null
true
!null
true
!!!0
true
!0
true
Is there any difference between !!!
and !
?
Found at jasmine source code in the toBeFalsy
matcher.
Results from chrome devtools
!!!undefined
true
!undefined
true
!!!null
true
!null
true
!!!0
true
!0
true
Is there any difference between !!! and !?
No. They are the same.
Why should I use !!! instead of ! (3 instead of 1 bang)
To annoy programmers