by knuckle_cake · 16y ago · 0 comments
Check the length property of a returned jQuery set if truthiness really matters.
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-ope...