Without Undefined Properties

Copies an object without its undefined properties. ๐Ÿซฅ

๐Ÿ‘ช All Contributors: 1 ๐Ÿค Code of Conduct: Kept ๐Ÿงช Coverage ๐Ÿ“ License: MIT ๐Ÿ“ฆ npm version ๐Ÿ’ช TypeScript: Strict

## 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
Josh Goldberg โœจ
Josh Goldberg โœจ

๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ“– ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ“† ๐Ÿ”ง
> ๐Ÿ’ This package was templated with [`create-typescript-app`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo engine](https://create.bingo). .