В PHP есть func_num_args и func_get_args , есть ли что-то подобное для JavaScript?
func_num_args
func_get_args