Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mnemonik
· 13y ago · 0 comments
Combine the two:
const tail = [, ...xs] => xs;
Comments
[–]
Benvie
13y ago
const tail = ([, ...xs]) => xs;
[–]
mnemonik
OP
13y ago
Ah you can't do the single-param-drop-parens when combined with destructuring? Good to know, thanks Benvie.