@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 645 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [isStringEmpty](./x-components.isstringempty.md)
Util used to return true if the string is empty, undefined or null.
**Signature:**
```typescript
export declare function isStringEmpty(str?: string | null): boolean;
```
| Parameter | Type | Description |
| --- | --- | --- |
| str | string \| null | _(Optional)_ String value. |
**Returns:**
boolean
Returns true if str is an empty string, undefined or null.