import { makeUniqueId } from "./makeUniqueId.js";
export function stringifyForDisplay(value, space = 0) {
    const undefId = makeUniqueId("stringifyForDisplay");
    return JSON.stringify(value, (key, value) => {
        return value === void 0 ? undefId : value;
    }, space)
        .split(JSON.stringify(undefId))
        .join("<undefined>");
}
//# sourceMappingURL=stringifyForDisplay.js.map
