In PHP there is func_num_args and func_get_args, is there something similar for JavaScript?
func_num_args
func_get_args
Use arguments. You can access it like an array. Use arguments.length for the number of arguments.
arguments
arguments.length
1.4m articles
1.4m replys
5 comments
57.0k users