<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [removeUndefined](./com-tools.removeundefined.md)

## removeUndefined() function

移除根级 undefined 属性

**Signature:**

```typescript
export declare function removeUndefined(obj: any): any;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

obj


</td><td>

any


</td><td>


</td></tr>
</tbody></table>
**Returns:**

any


