mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-17 23:50:52 +08:00
5 lines
152 B
TypeScript
5 lines
152 B
TypeScript
import type { ReactNode } from 'react';
|
|
export default function isValidNode(node: ReactNode): boolean {
|
|
return node !== undefined && node !== null;
|
|
}
|