MCPcopy Create free account
hub / github.com/GNOME/gjs / formatPropertyKey

Function formatPropertyKey

modules/script/_bootstrap/default.js:76–80  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

74 }
75
76 function formatPropertyKey(key) {
77 if (typeof key === 'symbol')
78 return `[${formatSymbol(key)}]`;
79 return `${key}`;
80 }
81
82 function formatObject(obj, properties, printedObjects = new WeakSet()) {
83 printedObjects.add(obj);

Callers 1

formatObjectFunction · 0.85

Calls 1

formatSymbolFunction · 0.85

Tested by

no test coverage detected