In object destructuring, the rest operator can be used to gather the remaining properties into a new '__________'.

  • Object
  • Array
  • Variable
  • Function
In object destructuring, the rest operator (...) is used to collect the remaining properties of an object into a new array. This allows you to extract specific properties while capturing the rest in a convenient variable, often referred to as an array or an object.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *