Spread und Rest Operator
Spread Operator
Beispiele
Funktionsaufrufe
const sum = (x, y, z) => {
return x + y + z;
}
const numbers = [1, 2, 3];
sum(...numbers));Array-Literals
const parts = ["shoulders", "knees"];
const lyrics = ["head", ...parts, "and", "toes"];Objekt-Literals
Rest Operator
Last updated