MCPcopy
hub / github.com/facebook/react / describeKeyForErrorMessage

Function describeKeyForErrorMessage

packages/shared/ReactSerializationErrors.js:99–102  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

97}
98
99function describeKeyForErrorMessage(key: string): string {
100 const encodedKey = JSON.stringify(key);
101 return '"' + key + '"' === encodedKey ? key : encodedKey;
102}
103
104export function describeValueForErrorMessage(value: mixed): string {
105 switch (typeof value) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected