Check out example codes for "angular dictionary". It will help you in understanding the concepts better.

Code Example 1

map = new Map<string, string>();

//set item
map.set("PO1", "closed");

//get item
map.get('PO1');
 
//has item
map.has('PO1');

//delete item
map.delete('PO1');

Learn ReactJs, React Native from akashmittal.com