Skip to content

Commit

Permalink
remove lodash references in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcrng committed Jun 3, 2019
1 parent 2fb49a4 commit 027ca0d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/create/asArray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Every single leaf on our `actions` object has access to `create.asArray` methods

If the leaf was initialised with array state, then these methods are also accessible directly through the [`create` API](../defaults.md).

If the current `leafState` is *not* an array, then it is first coerced into an array via lodash's [`_.toArray(leafState)`](https://lodash.com/docs/4.17.11#toArray) method, before the state is updated according to the action dispatched.
If the current `leafState` is *not* an array, then it is first coerced into an array, before the state is updated according to the action dispatched.

## Action creators
- [`.concat(array)`](#concatarray)
Expand Down
2 changes: 1 addition & 1 deletion docs/create/asNumber/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Every single leaf on our `actions` object has access to `create.asNumber` method

If the leaf was initialised with number state, then these methods are also accessible directly through the [`create` API](../defaults.md).

If the current `leafState` is *not* a number, then it is first coerced into an array via lodash's [`_.toNumber(leafState)`](https://lodash.com/docs/4.17.11#toNumber) method, before the state is updated according to the action dispatched.
If the current `leafState` is *not* a number, then it is first coerced into an array, before the state is updated according to the action dispatched.

## Action creators
- [`.increment([n = 1])`](#incrementn--1)
Expand Down
6 changes: 4 additions & 2 deletions docs/create/asObject/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ sidebar_label: Object

Every single leaf on our `actions` object has access to `create.asObject` methods.

If the leaf was initialised with [plain object](https://lodash.com/docs/4.17.11#isPlainObject) state, then these methods are also accessible directly through the [`create` API](../defaults.md).
If the leaf was initialised with [plain object] state<sup>1</sup>, then these methods are also accessible directly through the [`create` API](../defaults.md).

If the current `leafState` is *not* a plain object, then it is first coerced into a plain object via lodash's [`_.toPlainObject(leafState)`](https://lodash.com/docs/4.17.11#toPlainObject) method, before the state is updated according to the action dispatched.
If the current `leafState` is *not* a plain object, then it is first coerced into a plain object, before the state is updated according to the action dispatched.

<sup>1</sup>A plain object is created using `{}`, `new Object()` or `Object.create(null)`

## Action creators
- [`.assign(...sources)`](#assignsources)
Expand Down
2 changes: 1 addition & 1 deletion docs/create/asString/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Every single leaf on our `actions` object has access to `create.asString` method

If the leaf was initialised with string state, then these methods are also accessible directly through the [`create` API](../defaults.md).

If the current `leafState` is *not* a string, then it is first coerced into a string via lodash's [`_.toString(leafState)`](https://lodash.com/docs/4.17.11#toString) method, before the state is updated according to the action dispatched.
If the current `leafState` is *not* a string, then it is first coerced into a string, before the state is updated according to the action dispatched.

## Action creators
- [`.concat(...strings)`](#concatstrings)
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dependencies": {
"change-case": "^3.1.0",
"immer": "^3.0.0",
"lodash": "^4.17.11",
"ramda": "^0.26.1",
"ramda-adjunct": "^2.18.0",
"redux": "^4.0.1"
Expand Down

0 comments on commit 027ca0d

Please sign in to comment.