js contact arguments together to a string - NaClYen/blog GitHub Wiki

function test(code, ...others) {
  console.log(Array.from(arguments).join(''))
}

demo

input: test(123, "error", "test")
output: 123errortest