我在 JavaScript 中有一个函数:
function test() {
  console.log(arguments.length);
}
如果我用 调用它test(1,3,5),它会打印出来,3因为有 3 个参数。如何从另一个函数中调用 test 并传递另一个函数的参数?
function other() {
  test(arguments); // always prints 1
  test(); // always prints 0
}
我想打电话other并让它test用它的arguments数组调用。