I'm trying to call this inside a nested object in an array in node.js, but it's returning undefined.
var foo = {
    dog: 'max',
    cat: {
        names: [
            { grey: this.dog }
        ]
    }
};
When I try and do foo.cat.names[0].grey it returns undefined. I'm not in any functions, so I don't believe I have to cache this, right? 
 
    