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
  • 7,937
  • 8
  • 40
  • 87

0 Answers0