3 ms·
Combine the two: const tail = [, ...xs] => xs;
by mnemonik 13y ago
Combine the two:
const tail = [, ...xs] => xs;
- Fistandantilus 13y agoIs Javascript's const head-const or tail-const?
- Benvie 13y agoconst tail = ([, ...xs]) => xs;
- mnemonik 13y agoAh you can't do the single-param-drop-parens when combined with destructuring? Good to know, thanks Benvie.