Copies an object without its undefined properties.
๐ซฅ
## Usage
```shell
npm i without-undefined-properties
```
Two functions are exported:
- `withoutUndefinedProperties`: Copies all of an object's properties except those that are `undefined`
- `withoutUndefinedPropertiesDeep`: Copies all of an object's properties except those that are `undefined`, recursively
### `withoutUndefinedProperties`
```ts
import { withoutUndefinedProperties } from "without-undefined-properties";
// { a: true }
withoutUndefinedProperties({ a: true, b: undefined });
```
### `withoutUndefinedPropertiesDeep`
```ts
import { withoutUndefinedPropertiesDeep } from "without-undefined-properties";
// { a: true, b: { c: false } }
withoutUndefinedPropertiesDeep({ a: true, b: { c: false, d: undefined } });
```
## Development
See [`.github/CONTRIBUTING.md`](./.github/CONTRIBUTING.md), then [`.github/DEVELOPMENT.md`](./.github/DEVELOPMENT.md).
Thanks! ๐ซฅ
## Contributors
> ๐ This package was templated with [`create-typescript-app`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo engine](https://create.bingo).
.