for my website with jquery and jquery.ui loaded i tried the following experiment.
If in the chrome console i type...
jQuery.ui
>Object {version: "1.9.1", keyCode: Object, ie: false, ie6: false, plugin: Object…}
but if i ask for its type i get..
typeof this["jQuery.ui"]
>"undefined"
Could someone explain why this is? how would/should i tell if jQuery.ui exists?.... if the "jQuery.ui" name was contained within a string variable, how would i use that variable to check existance..e.g.
var myvar = "jQuery.ui";
typeof this[myvar];