MCPcopy Create free account
hub / github.com/zxlie/FeHelper / normalizePreservedKey

Function normalizePreservedKey

apps/json-format/json-worker.js:59–64  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

57}
58
59function normalizePreservedKey(key) {
60 if (typeof key === 'string' && key.indexOf(PRESERVED_INTEGER_KEY_PREFIX) === 0) {
61 return key.slice(PRESERVED_INTEGER_KEY_PREFIX.length);
62 }
63 return key;
64}
65
66function safeStringify(obj, space) {
67 const tagged = JSON.stringify(obj, function(key, value) {

Callers 1

createNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected