Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js map constructor

let myMap = new Map([
  [1, 'one'], // [key, value]
  [2, 'two'],
  [3, 'three'],
]) // from MDN
 
PREVIOUS NEXT
Tagged: #js #map #constructor
ADD COMMENT
Topic
Name
4+7 =