Skip to content

cotrVarMapAlt

Creates a map variable

Aliases:

  • cotrVarMapAlt

javascript

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

javascriptreact

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

rust

use std::collections::BTreeMap;
let myMap = BTreeMap::new();