August 2011

JavaScript tip – Implicit conversion

  1. isSomething = function(val) {
  2. if (val == undefined || val == null || val == "") return false;
  3. return true;
  4. };