I have the following namespace (com.myCompany.myProject):
var com = {
myCompany: {
myProject: {
x: 1,
y: 2,
o: function() {
}
}
}
};
For example, I have the following code:
var self = com.myCompany.myProject;
How can I show this namespace as a string, e.g. "com.myCompany.myProject" ?
I've tried JSON.stringify() but it isn't that I looked for.
Thanks,