Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-value

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-value - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "get-value",
"description": "Use property paths (`a.b.c`) get a nested value from an object.",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/jonschlinkert/get-value",

@@ -6,0 +6,0 @@ "author": {

@@ -42,11 +42,4 @@ # get-value [![NPM version](https://badge.fury.io/js/get-value.svg)](http://badge.fury.io/js/get-value) [![Build Status](https://travis-ci.org/jonschlinkert/get-value.svg)](https://travis-ci.org/jonschlinkert/get-value)

var get = require('get-value');
```
## Examples
```js
var obj = {
a: {b : {c: {d: 'foo'}}},
};
var obj = {a: {b : {c: {d: 'foo'}}}};
get(obj, 'a.b.c');

@@ -58,9 +51,8 @@ //=> {d: 'foo'}

```
## Related projects
* [has-value](https://github.com/jonschlinkert/has-value): Returns true if a value exists, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. Other libs do this, but I needed one that would optionally _not_ treat zero as empty. Also, this works with booleans and other valu
* [set-value](https://github.com/jonschlinkert/set-value): Create nested values and any intermediaries dot notation (`'a.b.c'`) paths.
* [get-property](https://github.com/jonschlinkert/get-property): Get a nested property or its value from an object using simple `a.b.c` paths.
* [get-object](https://github.com/jonschlinkert/get-object): Get a object from a property on a nested object.
- [get-property](https://github.com/jonschlinkert/get-property)
- [get-object](https://github.com/jonschlinkert/get-object)
## Contributing

@@ -89,2 +81,2 @@ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/get-value/issues)

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 11, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 25, 2015._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc