mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-01 05:30:40 +00:00
7 lines
234 B
TypeScript
7 lines
234 B
TypeScript
export function isObject(value: any): value is Record<string, unknown> {
|
|
return value !== null && typeof value === 'object';
|
|
}
|
|
|
|
export function isI18NObject(value: any): boolean {
|
|
return isObject(value) && value.type === 'i18n';
|
|
} |