d3 / d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

Home Page:https://d3js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warn about impure `forceSimulation(nodes)` function that can modify its input

hamirmahal opened this issue · comments

https://github.com/d3/d3/blob/main/docs/d3-force/simulation.md#forcesimulationnodes-forcesimulation doesn't specify that it can modify its input parameter if it receives one. I think it should, so that consumers of this function know that it can mutate their data.