rsk82 rsk82 - 5 months ago 16
Javascript Question

is it possible to get all arguments of a function as single object inside that function?

Like in PHP there are

func_num_args
and
func_get_args
?

Answer

Use arguments. You can access it like an array. Use arguments.length for the number of arguments.