News for hackers. Stuff that matters.
Re:A Rosetta Stone for jQuery & YUI3 by aristus on Friday March 19, 2010 @06:13PM (#1205422)
Ah! I will verify and correct. Thanks.
Re:A Rosetta Stone for jQuery & YUI3 by nfriedly on Friday March 19, 2010 @08:19PM (#1205662)
JavaScript 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-ope...