We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975ac47 commit 8cf3970Copy full SHA for 8cf3970
1 file changed
docs/map.md
@@ -1,3 +1,7 @@
1
## 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.
3
Objects use key-value pairs, allowing values of any time, which provides the flexibility needed for data.
4
+Additionally, the key must be either a number or string, while the value type can be any type.
5
+``` ts
6
+ const myMap = {[index: string]: number}
7
+```
0 commit comments