You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
439 B
11 lines
439 B
4 months ago
|
import { makeUniqueId } from "./makeUniqueId.js";
|
||
|
export function stringifyForDisplay(value, space) {
|
||
|
if (space === void 0) { space = 0; }
|
||
|
var undefId = makeUniqueId("stringifyForDisplay");
|
||
|
return JSON.stringify(value, function (key, value) {
|
||
|
return value === void 0 ? undefId : value;
|
||
|
}, space)
|
||
|
.split(JSON.stringify(undefId))
|
||
|
.join("<undefined>");
|
||
|
}
|
||
|
//# sourceMappingURL=stringifyForDisplay.js.map
|