Closed Eswcvlad closed 5 months ago
[not(`[]`), not(`[1]`)]
[true, false]
[false, false]
[not(`{}`), not({a: 1})]
! operator works as expected. Looks like "not" is using JavaScript bool conversion rules, where !![] and !!{} are true.
!
!![]
!!{}
true
[not(`[]`), not(`[1]`)]
|[true, false]
|[false, false]
[not(`{}`), not({a: 1})]
|[true, false]
|[false, false]
!
operator works as expected. Looks like "not" is using JavaScript bool conversion rules, where!![]
and!!{}
aretrue
.