@feizheng/next-pick

1.0.0 • Public • Published

next-pick

Creates an object composed of the picked object properties.

version license size download

installation

npm install -S @feizheng/next-pick

usage

import '@feizheng/next-pick';

const object = {
  'a': 1,
  'c': 'c-value',
  some: {
    what: {
      and: {
        deep: {
          one: 1
        }
      }
    }
  }
};

const picked = nx.pick(object, ['a', 'c', 'some.what.and.deep.one']);

license

Code released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-pick

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.82 kB

Total Files

5

Last publish

Collaborators

  • afeiship