remove-object-dynamic
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

Note

This package currently add new function to handle deep object and remove it

Remove Object Dynamic

You can remove unnecessary payload without stress.

How to use this package

// * Lets say you have payload like this 
import { removeObjectDynamic, removeObjectDeepDynamic } from 'remove-object-dynamic'

const payload = {
  name: null,
  age: null,
  works: undefiend,
  status: 'Work'
}

const payload2 = {
  age: null,
  works: undefiend,
  status: 'Work',
  fullName: {
    first: 'Zulfan',
    last: ''
  }
}

console.log(removeObjectDynamic(payload))

console.log(removeObjectDeepDynamic(payload2))

// * Result 
// First Result
{ status: 'Work' }

// Second result 
{ status: 'Work', fullName: { first: 'Zulfan' } }

/remove-object-dynamic/

    Package Sidebar

    Install

    npm i remove-object-dynamic

    Weekly Downloads

    2

    Version

    2.1.4

    License

    MIT

    Unpacked Size

    6.06 kB

    Total Files

    9

    Last publish

    Collaborators

    • mzulfanw