<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [stringNormalizeEmptyToUndefined](./rc-js-util.stringnormalizeemptytoundefined.md)

## stringNormalizeEmptyToUndefined() function

Replaces length 0 strings with `undefined`<!-- -->.

**Signature:**

```typescript
export declare function stringNormalizeEmptyToUndefined(input: string | null | undefined): string | undefined;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

input


</td><td>

string \| null \| undefined


</td><td>


</td></tr>
</tbody></table>
**Returns:**

string \| undefined

`input` if it's a `string` of length greater than 0, otherwise `undefined`<!-- -->.

## Remarks

See [stringNormalizeEmptyToUndefined()](./rc-js-util.stringnormalizeemptytoundefined.md)<!-- -->.

