Skip to content

Commit

Permalink
docs: explicitly mention that setPathValue returns the target object
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Oct 12, 2016
1 parent 352dd71 commit 69b05d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -100,7 +100,7 @@ The primary export of `pathval` is an object which has the following methods:
* `hasProperty(object, name)` - Checks whether an `object` has `name`d property or numeric array index.
* `getPathInfo(object, path)` - Returns an object with info indicating the value of the `parent` of that path, the `name ` of the property we're retrieving and its `value`.
* `getPathValue(object, path)` - Retrieves the value of a property at a given `path` inside an `object`'.
* `setPathValue(object, path, value)` - Sets the `value` of a property at a given `path` inside an `object`'.
* `setPathValue(object, path, value)` - Sets the `value` of a property at a given `path` inside an `object` and returns the object in which the property has been set.

```js
var pathval = require('pathval');
Expand Down

0 comments on commit 69b05d9

Please sign in to comment.