<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [isStringEmpty](./x-components.isstringempty.md)

## isStringEmpty() function

Util used to return true if the string is empty, undefined or null.

**Signature:**

```typescript
export declare function isStringEmpty(str?: string | null): boolean;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  str | string \| null | _(Optional)_ String value. |

**Returns:**

boolean

Returns true if str is an empty string, undefined or null.

