So I encountered a problem. I have this object called myTree
. And that object has properties. One of the properties contains a method like this:
prep: function (variable) {
/* some code */
}
In that method there is an array myarray
and I want to know, whether it is possible to access the content of that array, and if it is, how I would do that.
I've made a demo on jsFiddle, and in the end of the JavaScript window you can see that I'm alerting the object prep
in which myarray
is contained.