Home / Function/ stringifyClass() — vue Function Reference

stringifyClass() — vue Function Reference

Architecture documentation for the stringifyClass() function in class.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  073499f7_3dff_a860_12e1_972e76df1ab0["stringifyClass()"]
  36937816_dc6e_5dbf_7567_a748aa0481ba["renderClass()"]
  36937816_dc6e_5dbf_7567_a748aa0481ba -->|calls| 073499f7_3dff_a860_12e1_972e76df1ab0
  0d9ba3b8_40f0_ad64_9b81_5c11bb97112e["stringifyArray()"]
  0d9ba3b8_40f0_ad64_9b81_5c11bb97112e -->|calls| 073499f7_3dff_a860_12e1_972e76df1ab0
  0d9ba3b8_40f0_ad64_9b81_5c11bb97112e["stringifyArray()"]
  073499f7_3dff_a860_12e1_972e76df1ab0 -->|calls| 0d9ba3b8_40f0_ad64_9b81_5c11bb97112e
  3d975ef8_6070_36a5_82f8_9180576e2ca1["isObject()"]
  073499f7_3dff_a860_12e1_972e76df1ab0 -->|calls| 3d975ef8_6070_36a5_82f8_9180576e2ca1
  971e27c4_ff38_0cf2_483a_810ce143b438["stringifyObject()"]
  073499f7_3dff_a860_12e1_972e76df1ab0 -->|calls| 971e27c4_ff38_0cf2_483a_810ce143b438
  style 073499f7_3dff_a860_12e1_972e76df1ab0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/util/class.ts lines 52–64

export function stringifyClass(value: any): string {
  if (Array.isArray(value)) {
    return stringifyArray(value)
  }
  if (isObject(value)) {
    return stringifyObject(value)
  }
  if (typeof value === 'string') {
    return value
  }
  /* istanbul ignore next */
  return ''
}

Domain

Subdomains

Frequently Asked Questions

What does stringifyClass() do?
stringifyClass() is a function in the vue codebase.
What does stringifyClass() call?
stringifyClass() calls 3 function(s): isObject, stringifyArray, stringifyObject.
What calls stringifyClass()?
stringifyClass() is called by 2 function(s): renderClass, stringifyArray.

Analyze Your Own Codebase

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

Try Supermodel Free