Javascript Why Is This Spread Operator Causing A Syntaxerror

Javascript Why Is This Spread Operator Causing A Syntaxerror