is there a possibility to access ALL destructed function parameters in one object?
So I have this function head:
function coolFunctionName({test1 = "foo", test2 = "bar"})
I want to access them in one object. arguments
doesn't work, because there aren't stored the default parameters which doesn't have a value in function call.
Is there a good and clean way to do that?
EDIT: I don't need the destructed parameters. I just want to have all of them in one object.