I am parsing a complex object in Typescript, so have something like:
const a = reply['price']['value']['total']['value'];
and I like to ensure that all elements are defined in the chain, otherwise, it should set a=0 and do not trigger an exception if some of the chained keys are in fact undefined.
What would be the appropriate syntax for that?