<!-- 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

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

str


</td><td>

string \| null


</td><td>

_(Optional)_ String value.


</td></tr>
</tbody></table>

**Returns:**

boolean

Returns true if str is an empty string, undefined or null.

