# delete-object-property

> Use strings to delete properties from a complex object

Latest version **0.0.4** (published 2022-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install delete-object-property
pnpm add delete-object-property
yarn add delete-object-property
bun add delete-object-property
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2022-07-17 |
| First published | 2022-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 42.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | survivorbat |
| Maintainers | survivorbat |

## Links

- npm: https://www.npmjs.com/package/delete-object-property
- Repository: https://github.com/survivorbat/delete-object-property
- Issues: https://github.com/survivorbat/delete-object-property/issues
- npm.io page: https://npm.io/package/delete-object-property

## Recent versions

- 0.0.4 (latest) — 2022-07-17
- 0.0.3 — 2022-07-04
- 0.0.2 — 2022-07-03
- 0.0.1 — 2022-07-03

## README

# 🗑️ Delete Object Property

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/survivorbat/delete-object-property/deploy)
![npm](https://img.shields.io/npm/dt/delete-object-property)
![GitHub](https://img.shields.io/github/license/survivorbat/delete-object-property)

Small utility to remove a property from a complex object using strings.
Several other packages already exist for this purpose, but I wanted my own :)

## ⬇️ Installation

`npm i delete-object-property`

## 📋 Usage

Works with both objects and arrays.

```typescript
const object = {
  foo: 'bar',
  bar: {
    baz: 'lorem ipsum',
  },
};

const result = deleteProperties(object, 'bar.baz');

// This will output { foo: 'bar' }
console.log(result);
```

## 🔭 Plans

Not much yet

---
_Source: https://npm.io/package/delete-object-property · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
