need to write a function that will accept unknown object properties and pass them to another plugins function. Problem is how to retrieve given arguments, and pass them further?
example:
function(obj) {
other_function(obj)
}
obj should accept it in form { arrows: true, size: ‘250’ … } etc. and pass it to other function in the same form.
problem is how to pass them like that? I can make default values of all parameters, but it would make no sense if it is a large group, and if someone adds new parameters to other_function 🙂
thanks in advance!
Using the
argumentsproperty you can pass to any function extra arguments: