d3 arrow function class code example
Example: what is (d,i,n) arrow functions d3
selection.on('mouseenter', (d, i, nodes) => { d3.select(nodes[i]).text(d.name);});
selection.on('mouseenter', (d, i, nodes) => { d3.select(nodes[i]).text(d.name);});