Home / Function/ repeat() — vue Function Reference

repeat() — vue Function Reference

Architecture documentation for the repeat() function in debug.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  32100166_ff86_75a9_1b95_b399a2409c7d["repeat()"]
  c11cafd0_9de7_a29e_a7df_dc098f20ea24["debug.ts"]
  32100166_ff86_75a9_1b95_b399a2409c7d -->|defined in| c11cafd0_9de7_a29e_a7df_dc098f20ea24
  7536cd2f_8916_5580_2b8c_ac504f1598e9["generateComponentTrace()"]
  7536cd2f_8916_5580_2b8c_ac504f1598e9 -->|calls| 32100166_ff86_75a9_1b95_b399a2409c7d
  style 32100166_ff86_75a9_1b95_b399a2409c7d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/debug.ts lines 57–65

  const repeat = (str, n) => {
    let res = ''
    while (n) {
      if (n % 2 === 1) res += str
      if (n > 1) str += str
      n >>= 1
    }
    return res
  }

Domain

Subdomains

Frequently Asked Questions

What does repeat() do?
repeat() is a function in the vue codebase, defined in src/core/util/debug.ts.
Where is repeat() defined?
repeat() is defined in src/core/util/debug.ts at line 57.
What calls repeat()?
repeat() is called by 1 function(s): generateComponentTrace.

Analyze Your Own Codebase

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

Try Supermodel Free