1.0.0 • Published 5 years ago
recursive-nullify v1.0.0
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' }
// }
1.0.0
5 years ago