rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
56 lines (27 loc) • 807 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [fpNormalizeToNull](./rc-js-util.fpnormalizetonull.md)
## fpNormalizeToNull() function
Normalizes `undefined` input to `null`<!-- -->.
**Signature:**
```typescript
export declare function fpNormalizeToNull<TValue>(value: TValue): Exclude<TValue, undefined> | null;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
value
</td><td>
TValue
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Exclude<TValue, undefined> \| null
## Remarks
See [fpNormalizeToNull()](./rc-js-util.fpnormalizetonull.md)<!-- -->.