denysdovhan / wtfjs

🤪 A list of funny and tricky JavaScript examples
http://bit.ly/wtfjavascript
Do What The F*ck You Want To Public License
34.95k stars 2.55k forks source link

Fixing typo #151

Closed JamieREvans closed 4 years ago

JamieREvans commented 4 years ago

A banged array is falsy, so comparing it to false should return true. As well, a few lines up has this exact line with a true output.

denysdovhan commented 4 years ago

Thanks for contributing!