59 / 2019-04-03 14:36:49
Millimeter Wave Channel Estimation from Quadratic Measurements
Pipe-Jacking Shallow-buried
Track 3 > 专题 3.3
Abstract Review Pending
A function's last parameter can be prefixed with ... which will cause all remaining (user supplied) arguments to be placed within a "standard" javascript array. Only the last parameter can be a "rest parameter".

function myFun(a, b, ...manyMoreArgs) {
console.log("a", a);
console.log("b", b);
console.log("manyMoreArgs", manyMoreArgs);
}

myFun("one", "two", "three", "four", "five", "six");

// Console Output:
// a, one
// b, two
// manyMoreArgs, [three, four, five, six]