Skip to content

LinusU/recursive-nullify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Return a clone of a deep object, with all prototypes set to null

Resources

Stars

Watchers

Forks

Packages

No packages published