Skip to content

Instantly share code, notes, and snippets.

@hiquest
Last active August 4, 2018 11:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiquest/9b751a41deec9f7a680bea92da92a30a to your computer and use it in GitHub Desktop.
Save hiquest/9b751a41deec9f7a680bea92da92a30a to your computer and use it in GitHub Desktop.
Truthy check in JavaScript vs. Python vs. Ruby
Value JavaScript Ruby Python
null false false false
0 false true false
"" false true false
[] true true false
{} true true false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment