Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map method js

// Map objects are collections of key-value pairs. 
// A key in the Map may only occur once, it is unique in the Map 's collection
let map = new Map()
let keyArray = 'Array'
map.set(keyArray, [1, 2, 3, 4, 5])
map.get(keyArray) // 1, 2, 3, 4, 5
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #map #method #js
ADD COMMENT
Topic
Name
6+2 =