Skip to content

Commit 5204753

Browse files
committed
clarity in destructuring code example
readme
1 parent 286e845 commit 5204753

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ Other Style Guides
378378
}
379379
380380
// good
381-
function getFullName(obj) {
382-
const { firstName, lastName } = obj;
381+
function getFullName(user) {
382+
const { firstName, lastName } = user;
383383
return `${firstName} ${lastName}`;
384384
}
385385

0 commit comments

Comments
 (0)