HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by mnemonik | Hacker News Reader
Parent
Full thread
mnemonik
·
Combine the two:
const tail = [, ...xs] => xs;
View on HN
Benvie
·
const tail = ([, ...xs]) => xs;
mnemonik
·
Ah you can't do the single-param-drop-parens when combined with destructuring? Good to know, thanks Benvie.
Reply on news.ycombinator.com