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

Function stringifySymbol

packages/shared/src/toDisplayString.ts:64–67  ·  view source on GitHub ↗
(v: unknown, i: number | string = '')

Source from the content-addressed store, hash-verified

62}
63
64const stringifySymbol = (v: unknown, i: number | string = ''): any =>
65 // Symbol.description in es2019+ so we need to cast here to pass
66 // the lib: es2016 check
67 isSymbol(v) ? `Symbol(${(v as any).description ?? i})` : v

Callers 1

replacerFunction · 0.85

Calls 1

isSymbolFunction · 0.90

Tested by

no test coverage detected