JSPM

  • Created
  • Published
  • Downloads 11878191
  • Score
    100M100P100Q203873F

Use property paths (`a.b.c`) get a nested value from an object.

Package Exports

  • get-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 (get-value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-value NPM version

Use property paths (a.b.c) get a nested value from an object.

Usage

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

Examples

var obj = {
  a: {locals : {name: {first: 'Brian'}}},
  b: {locals : {name: {last: 'Woodward'}}}
};

get(obj, 'a.locals.name');
//=> {first: 'Brian'}

get(obj, 'b.locals.name');
//=> {last: 'Woodward'}

Install

Install with npm

npm i get-value --save

Install with bower

bower install get-value --save

Run tests

npm test

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on October 18, 2014.