1.0.0 • Published 7 years ago
remove-object-properties v1.0.0
Install
$ npm install --save remove-object-properties
# OR
$ yarn add remove-object-properties
Usage
const removeObjectProperties = require('remove-object-properties')
const obj = {
foo: 1,
bar: 2,
baz: 3,
whoop: 4,
whoo: 5
}
const newObj = removeObjProps(obj, 'foo', 'bar')
const newNewObj = removeObjProps(obj, ['foo', 'bar'])
console.log(obj) // { foo: 1, bar: 2, baz: 3, whoop: 4, whoo: 5 }
console.log(newObj) // { baz: 3, whoop: 4, whoo: 5 }
console.log(newNewObj) // { baz: 3, whoop: 4, whoo: 5 }
Contribute
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
License
Licensed under the MIT License.
1.0.0
7 years ago