function test(firstParam, secondParam, thirdParam){ | |
var args = Array.apply(null, arguments); | |
console.log(args); | |
} | |
test(1, 2, 3); // [1, 2, 3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment