mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(learn): overview of Map methods (#56977)
Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
+3
-2
@@ -15,8 +15,9 @@ The new version of JavaScript provides us with a built-in Map object which provi
|
||||
- `.set(key, value)` sets a new key, value pair
|
||||
- `.delete(key)` removes a key, value pair
|
||||
- `.clear()` removes all key, value pairs
|
||||
- `.entries()` returns an array of all the keys in insertion order
|
||||
- `.values()` returns an array of all the values in insertion order
|
||||
- `.keys()` returns a new map iterator object that contains all the keys in insertion order
|
||||
- `.values()` returns a new map iterator object that contains all the values in insertion order
|
||||
- `.entries()` returns a new map iterator object that contains all the key, value pairs in insertion order
|
||||
|
||||
# --instructions--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user