I'm using ES6's spread operator with Babel as a transpiler to ES5. When I use the spread operator like so:
const { height, weight, radius, ...otherValues } = sphere;
I get a SyntaxError:
ERROR in ./src/sphere.js
Module build failed: SyntaxError: Unexpected token (7:36)
   6 | 
>  7 |   const { height, weight, radius, ...otherValues } = sphere;
     |                                   ^
   8 | 
Why is this?
 
    