You've met the spread syntax ... a couple of times already. Let's collect all its tricks in one place. Spread unpacks an array (or object, or string) into its individual pieces, wherever you put it.
// copying and combining arrays
const breakfast = ["eggs", "bread"];
const lunch = ["rice", "stew"];
const allMeals = [...breakfast, ...lunch, "fruit"];
console.log(allMeals);
// passing array items as separate arguments
const scores = [72, 95, 88, 61];
console.log(Math.max(...scores));
// splitting a string into characters
console.log([..."hello"]);
// copying and merging objects
const base = { size: "medium", color: "blue" };
const custom = { ...base, color: "red", logo: true };
console.log(custom);
It prints
[ 'eggs', 'bread', 'rice', 'stew', 'fruit' ]
95
[ 'h', 'e', 'l', 'l', 'o' ]
{ size: 'medium', color: 'red', logo: true }That Math.max(...scores) is a neat one. Math.max wants separate numbers, like Math.max(72, 95, 88, 61), not an array. Spread unpacks the array into exactly that.