1.0.0 • Published 3 years ago
delete-object-properties v1.0.0
This Package is useful to remove properties from the object. It removes only first level properties and not nested properties.
Install : npm install auto-delete-object-properties
Usage:
const delProps = require('delete-object-properties');
var myCar = { make: 'Ford', model: 'Mustang', year: 1969 }; // Object to perform action on
delProps(myCar,'model','year')
console.log(myCar) // { make: 'Ford' }
1.0.0
3 years ago