I have been working using optional chaining, but it looks like its enough by putting the ? operator on the penultime attribute to check the entire chain, what you think guys?
In order to check the entire chain would be enough by using the optional chaining like this: data.attr1.attr2?.attr3
, or do i still need to put the ? operator on every attribute like this: data?.attr1?.attr2?.attr3
?