Files
UDN/utility.ts
T

8 lines
156 B
TypeScript
Raw Normal View History

2024-07-05 00:16:22 +02:00
export function guardStringNotEmpty(
data: any,
cb: (data: string) => void
): void {
if (typeof data != "string" || data == "") return;
2024-07-05 00:15:00 +02:00
cb(data);
}