Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ JavaScript function can change an object's properties or alter the contents of
an array which could easily cause bugs elsewhere.

Suppose there's a function that accepts an array parameter representing a
shopping cart. If the function makes a change in that shopping cart array
- by adding an item to purchase, for example - then any other function that
shopping cart. If the function makes a change in that shopping cart array -
by adding an item to purchase, for example - then any other function that
uses that same `cart` array will be affected by this addition. That may be
great, however it could also be bad. Let's imagine a bad situation:

Expand Down