MCPcopy
hub / github.com/vuejs/core / formatProps

Function formatProps

packages/runtime-core/src/warning.ts:134–144  ·  view source on GitHub ↗
(props: Data)

Source from the content-addressed store, hash-verified

132}
133
134function formatProps(props: Data): any[] {
135 const res: any[] = []
136 const keys = Object.keys(props)
137 keys.slice(0, 3).forEach(key => {
138 res.push(...formatProp(key, props[key]))
139 })
140 if (keys.length > 3) {
141 res.push(` ...`)
142 }
143 return res
144}
145
146function formatProp(key: string, value: unknown): any[]
147function formatProp(key: string, value: unknown, raw: true): any

Callers 1

formatTraceEntryFunction · 0.85

Calls 3

formatPropFunction · 0.85
forEachMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected