Skip to content

Commit f15700d

Browse files
authored
Update article.md
Simplify wording
1 parent 5f2b5a8 commit f15700d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/07-map-set/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ set.forEach((value, valueAgain, set) => {
291291
292292
Note the funny thing. The callback function passed in `forEach` has 3 arguments: a `value`, then *the same value* `valueAgain`, and then the target object. Indeed, the same value appears in the arguments twice.
293293
294-
That's for compatibility with `Map` where the callback passed `forEach` has three arguments. Looks a bit strange, for sure. But this convention may help to replace `Map` with `Set` in certain cases with ease, and vice versa.
294+
That's for compatibility with `Map` where the callback passed `forEach` has three arguments. Looks a bit strange, for sure. But this may help to replace `Map` with `Set` in certain cases with ease, and vice versa.
295295
296296
The same methods `Map` has for iterators are also supported:
297297

0 commit comments

Comments
 (0)