recursive-nullify

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

MIT 1 个版本
安装
npm install recursive-nullify
yarn add recursive-nullify
pnpm add recursive-nullify
bun add recursive-nullify
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' }
//   }
版本列表
1.0.0 2019-05-03