get-single-obj-prop

0.0.0 • Public • Published

get-single-obj-prop

Quickly navigate to a single property in a complex object. Based on this

Install

$ npm install get-single-obj-prop

Usage

const getSingleObjProp = require('get-single-obj-prop');

const obj = {
  a: {
    b: {
      c: 'test',
    },
  },
};

getSingleObjProp(obj, 'a.b.c'); //=> 'test'

License

MIT © Carl Mungazi

Readme

Keywords

Package Sidebar

Install

npm i get-single-obj-prop

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

2.52 kB

Total Files

5

Last publish

Collaborators

  • carlmungazi