/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function isValidObject(objToTest) { if (null == objToTest) return false; if ("undefined" == typeof(objToTest)) return false; return true; }
URL: http://tech.chitgoks.com/2008/06/30/javascript-check-if-object-is-valid/
Comments
