mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-16 06:42:53 +00:00
8 lines
235 B
TypeScript
8 lines
235 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';
|
|
}
|