ES6 Rest & Spread operators
Вставка
- Опубліковано 5 вер 2024
- The Rest and Spread operators are two sides of the same thing - the ability to take an array and break it apart into its individual components or combine a bunch of elements into a single array. Just remember that it needs to be used within the context of passing the value(s) to a function or creating an array.
Code Gist: gist.github.co...
MDN reference: developer.mozi...