Javascript Object isNull(targetObj)

Description

Javascript Object isNull(targetObj)

function isNull (targetObj) {
 if (targetObj == null || targetObj == 'null'
  || typeof targetObj == 'undefined' || targetObj == 'undefined') {
  return true;/*from   w w  w .j a  v  a2  s.  c  om*/
 } else {
  return false;
 }
}



PreviousNext

Related