6 lines
189 B
TypeScript
6 lines
189 B
TypeScript
export function normalizeAccountId(value?: string): string | undefined {
|
|
if (typeof value !== "string") return undefined;
|
|
const trimmed = value.trim();
|
|
return trimmed || undefined;
|
|
}
|