How to use the Rest Operator (…) in Object Destructuring

Posted by & filed under Modern JavaScript.

1 minute read The Rest Operator (…), three dots, in ES6 comes with some caveats: you can use the rest operator at most once the rest operator must appear at the end What does the rest operator (…) do? It copies all remaining properties of the destructuring source into its operand, without the ones that were already mentioned… Read more »