7 lines
219 B
TypeScript
7 lines
219 B
TypeScript
import { NativeElement } from "./core/Component";
|
|
|
|
export const checkIfNativeElement = (arg: any) => {
|
|
const nativeArg = arg as NativeElement;
|
|
return typeof nativeArg === "object" && nativeArg.type === "native";
|
|
};
|