Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

nested-object-mutator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nested-object-mutator

[docs](https://changjoo-park.github.io/nested-object-mutator/)

npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Nested Object Mutator

docs

The library for mutating deep nesting object support both Node.js and browsers.

Full builds less than ~2kb

Installation

npm install --save nested-object-mutator

Usage

Remove Nullish

import NOM from 'nested-object-mutator'

const source = {
  a: null,
  b: {
    c: undefined,
    d: null
  },
  e: {
    f: {
      g: null
    }
  }
}

const result = NOM.removeNullish(source)

// The result is `{b: {}, e: {f: {}}}`

Keywords

deep

FAQs

Package last updated on 23 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts