Skip to content

Commit 9fb1d68

Browse files
Update map.md
1 parent 405bacc commit 9fb1d68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Map
2-
A map is similar to an array, but uses an object, or dictionary/map to store items of different data types, like numbers and strings.
2+
A map is similar to an array, but uses an object or dictionary to store items of different data types (e.g., numbers, strings).
33
Objects use key-value pairs, allowing values of any time, which provides the flexibility needed for data.
44
Additionally, the key must be either a number or string, while the value type can be any type.
55
``` ts

0 commit comments

Comments
 (0)