Is it an object
<html> <head> <script type="text/javascript"> var djConfig = { baseScriptUri : "js/dojo/" }; </script> <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script> <script> var s1 = "string"; var s2 = new String("string object"); var o = new Object(); var a = new Array(); alert(dojo.isObject(s1) + " " + dojo.isObject(s2) + " " + dojo.isObject(o) + " " + dojo.isObject(a)); </script> </head> <body></body> </html>