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