Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hubert123
· 9y ago · 0 comments
What is this syntax? const {clicks=0} = state;
Comments
[–]
icharala
9y ago
It's object deconstructuring, including a default value:
https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...