Installation
Node.js
npm install delete-key --save
Example
const deleteKey = ; const targetObj = a: 4 b: 5 d: a: 1; ; console; //=> {a: 4};
Deletes recursively
const targetObj = a: 4 b: 5 d: a: 1; ; console; //=> {a: 4, d: {}};
Copy target object
const targetObj = a: 4 b: 5 d: a: 1; const newTargetObject = deleteKey; console; //=> {a: 4, b: 5, d: {a: 1}};console; //=> {a: 4, d: {}};
Changelog
You can view the changelog here
License
delete-key is open-sourced software licensed under the MIT license