7 lines
199 B
TypeScript
7 lines
199 B
TypeScript
|
|
export function normalizeEditorText(value: unknown): string {
|
||
|
|
if (value === null || value === undefined || value === "null" || value === "undefined") {
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
return String(value);
|
||
|
|
}
|