ldc-cocotte/resources/ts/modules/ckeditor-utils.ts

7 lines
199 B
TypeScript
Raw Permalink Normal View History

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