Return to Snippet

Revision: 35208
at November 4, 2010 03:45 by dmistriotis


Initial Code
function isValidObject(objToTest) {
  if (null == objToTest) return false;
  if ("undefined" == typeof(objToTest)) return false;
  return true;
}

Initial URL
http://tech.chitgoks.com/2008/06/30/javascript-check-if-object-is-valid/

Initial Description

                                

Initial Title
Check if object exists

Initial Tags
javascript, object

Initial Language
JavaScript