4 ms·
Ah! I will verify and correct. Thanks.
by aristus 17y ago
Ah! I will verify and correct. Thanks.
- nfriedly 17y agoJavaScript is weird about truthyness / falsyness of arrays: if([] == false){ // this code runs } if( [] ) { // this code also runs } if([] == true){ // this code doesn't run } From http://nfriedly.com/techblog/2009/06/advanced-javascript-operators-and-truthy-falsy/ http://nfriedly.com/techblog/2009/06/advanced-javascript-ope...