MCPcopy Index your code
hub / github.com/nodejs/node / formatPreviewPropertyValue

Function formatPreviewPropertyValue

lib/internal/debugger/inspect_probe.js:158–163  ·  view source on GitHub ↗
(property)

Source from the content-addressed store, hash-verified

156}
157
158function formatPreviewPropertyValue(property) {
159 if (property.type === 'string') {
160 return JSONStringify(property.value ?? '');
161 }
162 return property.value ?? property.type;
163}
164
165function trimRemoteObject(result) {
166 if (result === undefined || result === null || typeof result !== 'object') {

Callers 1

formatRemoteObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected