npm.io
1.0.0 • Published 8 years ago

can-delete-prop

Licence
MIT
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

can-delete-prop

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

Installation

Requires Node.js.

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.

Keywords