Home / Function/ formatLanes() — react Function Reference

formatLanes() — react Function Reference

Architecture documentation for the formatLanes() function in timelineDataSerializer.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  11fa6bbb_33e8_1310_1b00_69f5619718b3["formatLanes()"]
  0cee2a62_bc8b_3abb_2ba6_d77cfc667c07["timelineDataSerializer.js"]
  11fa6bbb_33e8_1310_1b00_69f5619718b3 -->|defined in| 0cee2a62_bc8b_3abb_2ba6_d77cfc667c07
  5e3fc296_265a_a347_b5c4_f1911603da89["print()"]
  5e3fc296_265a_a347_b5c4_f1911603da89 -->|calls| 11fa6bbb_33e8_1310_1b00_69f5619718b3
  style 11fa6bbb_33e8_1310_1b00_69f5619718b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/__tests__/__serializers__/timelineDataSerializer.js lines 4–7

function formatLanes(laneArray) {
  const lanes = laneArray.reduce((current, reduced) => current + reduced, 0);
  return '0b' + lanes.toString(2).padStart(31, '0');
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does formatLanes() do?
formatLanes() is a function in the react codebase, defined in packages/react-devtools-shared/src/__tests__/__serializers__/timelineDataSerializer.js.
Where is formatLanes() defined?
formatLanes() is defined in packages/react-devtools-shared/src/__tests__/__serializers__/timelineDataSerializer.js at line 4.
What calls formatLanes()?
formatLanes() is called by 1 function(s): print.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free