MCPcopy Create free account
hub / github.com/Snapchat/Valdi / formatAsString

Function formatAsString

valdi/vscode_debugger/src/adapter/objectPreview/index.ts:405–410  ·  view source on GitHub ↗
(param: Cdp.Runtime.RemoteObject, characterBudget: number)

Source from the content-addressed store, hash-verified

403}
404
405function formatAsString(param: Cdp.Runtime.RemoteObject, characterBudget: number): string {
406 return stringUtils.trimMiddle(
407 String(typeof param.value !== 'undefined' ? param.value : param.description),
408 characterBudget,
409 );
410}
411
412export function formatAsTable(param: Cdp.Runtime.ObjectPreview): string {
413 // Collect columns, values and measure lengths.

Callers 1

index.tsFile · 0.85

Calls 1

StringClass · 0.50

Tested by

no test coverage detected