mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 09:42:55 +00:00
6 lines
178 B
JavaScript
6 lines
178 B
JavaScript
export function getClassNameFromUnknown(u) {
|
|
if (u && typeof u === 'object' && 'className' in u && typeof u.className === 'string') {
|
|
return u.className;
|
|
}
|
|
return '';
|
|
} |