@charliewilco/sanitize-object
v1.0.1
Published
When you need a cloned object without the stowaways.
Downloads
8
Readme
Sanitize Object
When you need a cloned object without the stowaways.
Install
yarn add @charliewilco/sanitize-object
Example
const sanitize = require('@charliewilco/sanitize-object')
const cloned = sanitize(
{ dateAdded: '2017-11-21T15:57:28.109Z', title: 'Some Entry' },
['dateAdded']
)
console.log(cloned)
// Result: { title: 'Some Entry' }