JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 148
  • Score
    100M100P100Q100832F
  • License UNLICENSED

get a value from an object within other objects safely

Package Exports

  • deep-value

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (deep-value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

deep-value

npm version dependencies Build Status Pledge To Arupex!

Install

npm install deep-value --save

How to Use:

var deep = require('deep-value');

console.log('Checking, ' deep({ my : { value : 7} }, 'my.value'));  // 7

console.log('Checking, ' deep({ my : {} }, 'my.value'));            // undefined

console.log('Checking, ' deep({ notMine : {} }, 'my.value'));       // undefined