2

How to access a nested property, in a safe way (i.e. without throwing a TypeError)

(a.b) ? a.b.c : undefined

Is there a less verbose way, without using a framework ?

Yann Moisan
  • 8,161
  • 8
  • 47
  • 91

0 Answers0