Skip to content

Commit 6ac3dee

Browse files
authored
fix typo in the return objet literal part
Repetitions of the same sentence : "Writing `race` or `race: race` is the same." in the return an object literal part
1 parent 0d2a7bd commit 6ac3dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/02_arrow_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ console.log(results);
8080

8181
In this example, we're using the `map` function to iterate over the array `runners`. The first argument is the current item in the array, and the `i` is the index of it. For each item in the array we are then adding into `results` an Object containing the properties `name`, `race`, and `place`.
8282

83-
To tell `JavaScript` what's inside the curly braces is an **object literal** we want to implicitly return, so we need to wrap everything inside parentheses. Writing `race` or `race: race` is the same.
83+
To tell `JavaScript` what's inside the curly braces is an **object literal** we want to implicitly return, so we need to wrap everything inside parentheses.
8484

8585
Writing `race` or `race: race` is the same.
8686

0 commit comments

Comments
 (0)