You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
an operator represented with three dots (an elipsis)
it is used in function calls to expand iterable objects into an argument list
it is new to ES6
List 4 things that the spread operator can do.
it can spread an array passed into a function as separate arguments, making it easier to return a value when passing an array into methods such as Math.max()
Useful when using arrays as arguments
Can be used to concatenate arrays
Can be used for adding state to React
Give an example of using the spread operator to combine two arrays.