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