Skip to content

cotrVarMapClass

Creates a map variable using the Map class

Aliases:

  • cotrVarMapClass

typescript

let myMap = new Map<string, type>([
['key1', 'value1'],
['key2', 'value2']
]);

typescriptreact

let myMap = new Map<string, type>([
['key1', 'value1'],
['key2', 'value2']
]);