Home / Function/ format() — react Function Reference

format() — react Function Reference

Architecture documentation for the format() function in run_devtools_e2e_tests.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  6253ba5c_423a_138c_ef31_f8322f5c5131["format()"]
  78a11329_415e_c941_dd54_1e297b28e203["run_devtools_e2e_tests.js"]
  6253ba5c_423a_138c_ef31_f8322f5c5131 -->|defined in| 78a11329_415e_c941_dd54_1e297b28e203
  b809d57d_5f1f_3a96_a862_467a299e2033["logDim()"]
  b809d57d_5f1f_3a96_a862_467a299e2033 -->|calls| 6253ba5c_423a_138c_ef31_f8322f5c5131
  28aa116e_e9ec_a7a6_5770_77a1c33f5403["logError()"]
  28aa116e_e9ec_a7a6_5770_77a1c33f5403 -->|calls| 6253ba5c_423a_138c_ef31_f8322f5c5131
  b2823440_ebe2_7146_7acd_d71cb37e21ea["runEndToEndTests()"]
  b2823440_ebe2_7146_7acd_d71cb37e21ea -->|calls| 6253ba5c_423a_138c_ef31_f8322f5c5131
  style 6253ba5c_423a_138c_ef31_f8322f5c5131 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/ci/run_devtools_e2e_tests.js lines 22–30

function format(loggable) {
  return `${loggable}`
    .split('\n')
    .filter(line => {
      return line.trim() !== '';
    })
    .map(line => `  ${line}`)
    .join('\n');
}

Domain

Subdomains

Frequently Asked Questions

What does format() do?
format() is a function in the react codebase, defined in scripts/ci/run_devtools_e2e_tests.js.
Where is format() defined?
format() is defined in scripts/ci/run_devtools_e2e_tests.js at line 22.
What calls format()?
format() is called by 3 function(s): logDim, logError, runEndToEndTests.

Analyze Your Own Codebase

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

Try Supermodel Free