obj-value

1.0.1 • Public • Published

obj-value

Safely access javascript object values NpmVersion

Usage

First you need to install:

$ npm install obj-value

Then you can use it in your program:

const get = require('obj-value')
 
const obj = { a: { b: { c: 'd' } } }
 
get(obj, 'a.b.c') // returns 'd'
get(obj, 'a.b.d') // returns `null`

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i obj-value

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

1.6 kB

Total Files

3

Last publish

Collaborators

  • adamisntdead