In AngularJS some time ago, I remember AngularJS would consider [] to be falsy but in a later version to be truthy: stackoverflow.com/questions/357763...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What about
[]
,"\t"
and"\r"
, I think those values are falsey too!In Google Chrome or in NodeJS:
!![]
is the same asBoolean([])
In AngularJS some time ago, I remember AngularJS would consider
[]
to be falsy but in a later version to be truthy: stackoverflow.com/questions/357763...