warn about impure `forceSimulation(nodes)` function that can modify its input
hamirmahal opened this issue · comments
Hamir Mahal commented
Hamir Mahal commented
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.