Skip to content

Commit fdbd907

Browse files
authored
Object style consistency
Remove space before colon in object.
1 parent 025f7f9 commit fdbd907

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)