8 ms·
Some kind of way to parse variables only if they exist. The equivalent of (in Coffeescript) a = {b:'c'} a?.c //undefined a.b //'c' b?.c //undefined
by akhatri_aus 10y ago
Some kind of way to parse variables only if they exist. The equivalent of (in Coffeescript)
a = {b:'c'}
a?.c //undefined
a.b //'c'
b?.c //undefined
- peddicord 10y agoCorrect me if I'm wrong, but that doesn't seem like the domain of JSX. That's just JavaScript.