ldc-boutique-cnc-sable/resources/ts/modules/ckeditor-utils.ts

6 lines
199 B
TypeScript

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