title: How to pass ES6 rest parameters dynamically in d3.group
body: <p>I am trying to group data in D3.js version 6.</p>
  <pre><code>d3.group(data, d=&gt; d.Header, d=&gt;Group);
  </code></pre>
  <p>This works fine but if I want to dynamically group data on multiple columns, How do I pass it?</p>
  <pre><code>function group(values, ...keys) {
    return nest(values, _identity_js__WEBPACK_IMPORTED_MODULE_0__.default, _identity_js__WEBPACK_IMPORTED_MODULE_0__.default, keys);
  }
  </code></pre>
  <p>In d3.js library it expects rest parameters. Can someone help how to pass rest parameters in a function dynamically?</p>