recursive-nullify
v1.0.0
Published
Return a clone of a deep object, with all prototypes set to null.
Downloads
15
Readme
Recursive Nullify
Return a clone of a deep object, with all prototypes set to null.
Installation
npm add recursive-nullify
Usage
const recursiveNullify = require('recursive-nullify')
console.log(recursiveNullify({ hello: { name: 'world' } }))
//=> [Object: null prototype] {
// hello: [Object: null prototype] { name: 'world' }
// }