Function
formatAsString
(param: Cdp.Runtime.RemoteObject, characterBudget: number)
Source from the content-addressed store, hash-verified
| 403 | } |
| 404 | |
| 405 | function 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 | |
| 412 | export function formatAsTable(param: Cdp.Runtime.ObjectPreview): string { |
| 413 | // Collect columns, values and measure lengths. |
Tested by
no test coverage detected