Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
guigrpa committed Oct 3, 2017
1 parent 2e7cb1a commit 146844b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ removeAt(arr, 4) === arr

#### replaceAt()
Returns a new array obtained by replacing an item at
a specified index. If the provided item is the same
a specified index. If the provided item is the same as
(*referentially equal to*) the previous item at that position,
the original array is returned.

Expand Down Expand Up @@ -215,7 +215,7 @@ getIn(obj, ['e', 1])

#### set()
Returns a new object with a modified attribute.
If the provided value is the same (*referentially equal to*)
If the provided value is the same as (*referentially equal to*)
the previous value, the original object is returned.

Usage: `set<T>(obj: ?T, key: Key, val: any): T`
Expand All @@ -237,7 +237,7 @@ Returns a new object with a modified **nested** attribute.

Notes:

* If the provided value is the same (*referentially equal to*)
* If the provided value is the same as (*referentially equal to*)
the previous value, the original object is returned.
* If the path does not exist, it will be created before setting
the new value.
Expand Down Expand Up @@ -273,7 +273,7 @@ setIn({ a: 3 }, ['unknown', 0, 'path'], 4)
#### update()
Returns a new object with a modified attribute,
calculated via a user-provided callback based on the current value.
If the calculated value is the same (*referentially equal to*)
If the calculated value is the same as (*referentially equal to*)
the previous value, the original object is returned.

Usage: `update<T: ArrayOrObject>(obj: T, key: Key,
Expand All @@ -294,7 +294,7 @@ update(obj, 'b', (val) => val) === obj
#### updateIn()
Returns a new object with a modified **nested** attribute,
calculated via a user-provided callback based on the current value.
If the calculated value is the same (*referentially equal to*)
If the calculated value is the same as (*referentially equal to*)
the previous value, the original object is returned.

Usage: `updateIn<T: ArrayOrObject>(obj: T, path: Array<Key>,
Expand Down

0 comments on commit 146844b

Please sign in to comment.