Home / Function/ toString() — vue Function Reference

toString() — vue Function Reference

Architecture documentation for the toString() function in util.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  bb53260c_b91e_4c53_9052_5970ccb57525["toString()"]
  af57cd20_c4ce_0877_c02c_52056ca04d4a["compileScript()"]
  af57cd20_c4ce_0877_c02c_52056ca04d4a -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  daf5feaa_5661_e63c_80fa_09f5265e529c["prefixIdentifiers()"]
  daf5feaa_5661_e63c_80fa_09f5265e529c -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  b9e41bc3_7867_c0b1_b819_d02c210a9f46["scss()"]
  b9e41bc3_7867_c0b1_b819_d02c210a9f46 -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  1c045d9f_44f0_6be4_a94f_feabf6167d79["less()"]
  1c045d9f_44f0_6be4_a94f_feabf6167d79 -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  c0b33b28_c53f_db55_fab1_7f6054379fe4["renderDOMProps()"]
  c0b33b28_c53f_db55_fab1_7f6054379fe4 -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  f2d18c28_9782_02d0_c983_083b86068c69["createCompileToFunctionFn()"]
  f2d18c28_9782_02d0_c983_083b86068c69 -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  d7cd8bde_5ccc_a0ba_76ea_de047d8b982c["logError()"]
  d7cd8bde_5ccc_a0ba_76ea_de047d8b982c -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  fbb240de_965a_91cc_941c_3973c9ae84a4["getType()"]
  fbb240de_965a_91cc_941c_3973c9ae84a4 -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  5a55c232_11b5_189a_17b9_d192f49d33cf["isUnknownElement()"]
  5a55c232_11b5_189a_17b9_d192f49d33cf -->|calls| bb53260c_b91e_4c53_9052_5970ccb57525
  80bfcce4_fe50_33ea_903d_c2ad718873ba["isPlainObject()"]
  bb53260c_b91e_4c53_9052_5970ccb57525 -->|calls| 80bfcce4_fe50_33ea_903d_c2ad718873ba
  style bb53260c_b91e_4c53_9052_5970ccb57525 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/shared/util.ts lines 89–95

export function toString(val: any): string {
  return val == null
    ? ''
    : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
    ? JSON.stringify(val, replacer, 2)
    : String(val)
}

Subdomains

Frequently Asked Questions

What does toString() do?
toString() is a function in the vue codebase.
What does toString() call?
toString() calls 1 function(s): isPlainObject.
What calls toString()?
toString() is called by 9 function(s): compileScript, createCompileToFunctionFn, getType, isUnknownElement, less, logError, prefixIdentifiers, renderDOMProps, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free