Skip to content

Commit 288bf21

Browse files
Merge pull request ryanmcdermott#225 from LayZeeDK/patch-1
Object style consistency
2 parents 025f7f9 + fdbd907 commit 288bf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ const addItemToCart = (cart, item) => {
621621
**Good:**
622622
```javascript
623623
const addItemToCart = (cart, item) => {
624-
return [...cart, { item, date : Date.now() }];
624+
return [...cart, { item, date: Date.now() }];
625625
};
626626
```
627627

0 commit comments

Comments
 (0)