Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
akhatri_aus
· 10y ago · 0 comments
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
Comments
[–]
peddicord
10y ago
Correct me if I'm wrong, but that doesn't seem like the domain of JSX. That's just JavaScript.