I'm investigating why
!+[]
in javascript returns true. Do you have any idea?
I'm investigating why
!+[]
in javascript returns true. Do you have any idea?
+
is used to force numerical casting of a value and !
negates an expression.
So in this example it'd be
+[] = 0
!0 = true