mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-12 05:48:59 +08:00
feat(utils): 新增isObject
This commit is contained in:
parent
5887977e45
commit
46f6aeaaf7
@ -126,6 +126,8 @@ export const getUrlParam = (param: string, url?: string) => {
|
|||||||
return '';
|
return '';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const isObject = (obj: any) => Object.prototype.toString.call(obj) === '[object Object]';
|
||||||
|
|
||||||
export const isPop = (node: MComponent | null): boolean => Boolean(node?.type?.toLowerCase().endsWith('pop'));
|
export const isPop = (node: MComponent | null): boolean => Boolean(node?.type?.toLowerCase().endsWith('pop'));
|
||||||
|
|
||||||
export const isPage = (node?: MComponent | null): boolean => {
|
export const isPage = (node?: MComponent | null): boolean => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user