Skip to content
Myr

chore(docs): it's => its (#851)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yanick Champoux · committed by GitHub · parent a81cea1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:website/docs/produce.mdx+1 added-1 removed
38 unmodified lines
39Inside the recipe, all standard JavaScript APIs can be used on the `draft` object, including field assignments, `delete` operations, and mutating array, Map and Set operations like `push`, `pop`, `splice`, `set`, `sort`, `remove`, etc.4041Any of those mutations don't have to happen at the root, but it is allowed to modify anything anywhere deep inside the draft: `draft.todos[0].tags["urgent"].author.age = 56`4243Note that the recipe function itself normally doesn't return anything. However, it is possible to return in case you want to replace the `draft` object in it's entirety with another object, for more details see [returning new data](return).43Note that the recipe function itself normally doesn't return anything. However, it is possible to return in case you want to replace the `draft` object in its entirety with another object, for more details see [returning new data](return).4445## Example4647```javascript
43 unmodified lines