I am coming across the following error in js
Cannot read property 'charlie' of undefined
I am setting a value like this
alpha.beta.charlie.delta.echo = [];
but only alpha and beta are initialized as objects. So how do I auto initialize objects charlie and echo as objects without writing
alpha.beta.charlie = {};
alpha.beta.charlie.delta = {}
alpha.beta.charlie.delta.echo = [];