1.0.0 • Published 5 years ago

recursive-nullify v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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' }
//   }