Rest Syntax

Term side of the Card
Topic: Syntax
Unit title: Rest Syntax
Categories: Syntax, Operator
Explanation side of the Card

Explanation: The operator, denoted by three dots (`...`), that is used to collect all remaining elements into an array or object. it's often applied in functions to handle an indefinite number of arguments or in object destructuring to capture leftover properties.

Browser compatibility:
  • The chrome browser supports this feature starting from version 49
  • The edge browser supports this feature starting from version 79
  • The firefox browser supports this feature starting from version 52
  • The safari browser supports this feature starting from version 10
Availability: