SyntaxFix
Write A Post
Hire A Developer
Questions
Just check for it before you pass to your function. So you would pass:
thing.foo ? thing.foo.bar : undefined