Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

map typescript

Create Empty Map
let myMap = new Map<string, number>();
myMap.set('a', 1);
myMap.set('b', 2);
myMap.set('c', 3);

console.log(myMap.get('a'));
// expected output: 1

myMap.set('a', 97);
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #map #typescript
ADD COMMENT
Topic
Name
8+6 =