Skip to content

Commit

Permalink
Readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Feb 2, 2017
1 parent d49fb11 commit f91d08a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ console.log(obj);

## API

### get(obj, path, [value])
### get(obj, path, [defaultValue])

### set(obj, path, value)

Expand All @@ -83,7 +83,13 @@ Use `\\.` if you have a `.` in the key.

Type: `any`

Value to set at `path` or optional default value to return from get.
Value to set at `path`.

#### defaultValue

Type: `any`

Default value.


## License
Expand Down

0 comments on commit f91d08a

Please sign in to comment.