Is it possible to navigate through an object in JavaScript, referencing one 'area'/section of the object in another?
For example, if I have an object which is structured like below:
var config = {
    resources: {
        styles: 'path/to/a/stylesheet',
        scripts: 'path/to/a/javascript/file'
    },
    options: {
        plugin_a: {
            entries: [config.resources.styles, config.resources.scripts]
        }
    }
}
Is it possible for me to, for example, reference the path to my styles and scripts files in 'config.resources.styles' and 'config.resources.scripts' in the 'config.options.plugin_a' section?
Thanks
 
    