Skip to content

Instantly share code, notes, and snippets.

@UltCombo
Created April 10, 2013 23:11
Show Gist options
  • Save UltCombo/5359258 to your computer and use it in GitHub Desktop.
Save UltCombo/5359258 to your computer and use it in GitHub Desktop.
[] == false //ToPrimitive deste array retorna string vazia
"" == false //comparação com boolean converte booleano ToNumber
"" == 0 //comparação de string com número converte string ToNumber
0 == 0
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment