1.2.2 • Published 3 years ago

obter v1.2.2

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

used

all function do support deep object.

merge data

  const obter = require('obter')

  const targer = {
      a: 'A'
    }

    const source = {
      a: 'B',
      b: undefined,
      c: 123,
      d: undefined,
      e: null
    }

    obter.merge(targer, source)
    // a {a: 'B', c: 123, e: null}

clear data

  const obter = require('obter')

  const testObj = {
      a: 'A',
      b: undefined,
      c: {
        a: 1,
        b: {
          a: {},
          b: true'
        },
        c: {}
      },
      d: {}
  }
  const rObter = obter.clear(testObj)
  // rObter = {a: 'A', c: {a: 1, b: { b: true }}}

changelog

  • 1.2.2 - support nested empty object
  • 1.2.0 - support deep object
  • 1.0.1 - added README.md
  • 1.0.0 - init
1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago