javascript triple dot parameter code example
Example: three dots in javascript
// Extracts elements in Dict
let team = {
lead: "Bob",
num2: "Rob",
num3: "Dog",
}
// team
{lead: "Bob", num2: "Rob", num3: "Dog"}
let students = {
num1: "Andy",
num4: "Ben",
...team
}
//students
{num1: "Andy", num4: "Ben", lead: "Bob", num2: "Rob", num3: "Dog"}