439 BJavaScriptView Raw
1import { makeUniqueId } from "./makeUniqueId.js";
2export function stringifyForDisplay(value, space) {
3 if (space === void 0) { space = 0; }
4 var undefId = makeUniqueId("stringifyForDisplay");
5 return JSON.stringify(value, function (key, value) {
6 return value === void 0 ? undefId : value;
7 }, space)
8 .split(JSON.stringify(undefId))
9 .join("<undefined>");
10}
11//# sourceMappingURL=stringifyForDisplay.js.map
\No newline at end of file