Skip to content

Commit 7ee5ac0

Browse files
fix(learn): overview of Map methods (freeCodeCamp#56977)
Co-authored-by: Ilenia <[email protected]>
1 parent 4d50261 commit 7ee5ac0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

curriculum/challenges/english/10-coding-interview-prep/data-structures/create-an-es6-javascript-map.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ The new version of JavaScript provides us with a built-in Map object which provi
1515
- `.set(key, value)` sets a new key, value pair
1616
- `.delete(key)` removes a key, value pair
1717
- `.clear()` removes all key, value pairs
18-
- `.entries()` returns an array of all the keys in insertion order
19-
- `.values()` returns an array of all the values in insertion order
18+
- `.keys()` returns a new map iterator object that contains all the keys in insertion order
19+
- `.values()` returns a new map iterator object that contains all the values in insertion order
20+
- `.entries()` returns a new map iterator object that contains all the key, value pairs in insertion order
2021

2122
# --instructions--
2223

0 commit comments

Comments
 (0)