d3 / d3-hierarchy

2D layout algorithms for visualizing hierarchical data.
https://d3js.org/d3-hierarchy
ISC License
1.13k stars 315 forks source link

Adopt fat arrow syntax in README #198

Open curran opened 1 year ago

curran commented 1 year ago

As I use this documentation, I find myself migrating to fat arrow syntax. This PR is a start at migrating the sample code to use this syntax.

curran commented 1 year ago

@Fil Thanks for the no-paren style suggestion!

I went ahead and changed the rest of the inline function definitions to use fat arrow syntax.