getNodeIndex() — react Function Reference
Architecture documentation for the getNodeIndex() function in CommitRanked.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ce765df5_dde0_3203_b0da_a4d3533d9444["getNodeIndex()"] 0ad6c6d5_5d6d_2d8a_d957_e1433af66ea0["CommitRanked.js"] ce765df5_dde0_3203_b0da_a4d3533d9444 -->|defined in| 0ad6c6d5_5d6d_2d8a_d957_e1433af66ea0 06065863_ab85_3f88_85f6_552069252a4b["CommitRanked()"] 06065863_ab85_3f88_85f6_552069252a4b -->|calls| ce765df5_dde0_3203_b0da_a4d3533d9444 style ce765df5_dde0_3203_b0da_a4d3533d9444 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/devtools/views/Profiler/CommitRanked.js lines 169–180
const getNodeIndex = (chartData: ChartData, id: number | null): number => {
if (id === null) {
return 0;
}
const {nodes} = chartData;
for (let index = 0; index < nodes.length; index++) {
if (nodes[index].id === id) {
return index;
}
}
return 0;
};
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getNodeIndex() do?
getNodeIndex() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Profiler/CommitRanked.js.
Where is getNodeIndex() defined?
getNodeIndex() is defined in packages/react-devtools-shared/src/devtools/views/Profiler/CommitRanked.js at line 169.
What calls getNodeIndex()?
getNodeIndex() is called by 1 function(s): CommitRanked.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free