Core API Overview > @adpt/core > childrenIsEmpty
childrenIsEmpty() function
See if props.children refers to any children
Signature:
export declare function childrenIsEmpty<T>(propsChildren: T | undefined): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
propsChildren | T | undefined | The value of props.children to be checked |
Returns:
boolean
true if there are children, false otherwise