# can-delete-prop

> Checks whether the delete operator can be used on an object property.

Latest version **1.0.0** (published 2018-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install can-delete-prop
pnpm add can-delete-prop
yarn add can-delete-prop
bun add can-delete-prop
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-05-23 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Lamansky |
| Maintainers | lamansky |
| Keywords | delete, object, property, delete operator |

## Links

- npm: https://www.npmjs.com/package/can-delete-prop
- Repository: https://github.com/lamansky/can-delete-prop
- Issues: https://github.com/lamansky/can-delete-prop/issues
- npm.io page: https://npm.io/package/can-delete-prop

## Recent versions

- 1.0.0 (latest) — 2018-05-23

## README

# can-delete-prop

Checks whether the [`delete` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete) can be used on an object property.

## Installation

Requires [Node.js](https://nodejs.org/).

```bash
npm i can-delete-prop
```

## API

The module exports a single function.

### Parameters

1. `obj` (object)
2. `key` (string or symbol)

### Return Value

Returns `true` if the property exists and is configurable; otherwise `false`.

## Related

* [kdel](https://github.com/lamansky/kdel)
* [vdel](https://github.com/lamansky/vdel)

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