MCPcopy Index your code
hub / github.com/react/react / getMetaValueLabel

Function getMetaValueLabel

packages/react-devtools-shared/src/devtools/views/utils.js:99–105  ·  view source on GitHub ↗
(data: Object)

Source from the content-addressed store, hash-verified

97}
98
99export function getMetaValueLabel(data: Object): string | null {
100 if (hasOwnProperty.call(data, meta.preview_long)) {
101 return data[meta.preview_long];
102 } else {
103 return formatDataForPreview(data, true);
104 }
105}
106
107function sanitize(data: Object): void {
108 for (const key in data) {

Callers 2

KeyValue.jsFile · 0.90
sanitizeFunction · 0.85

Calls 1

formatDataForPreviewFunction · 0.90

Tested by

no test coverage detected