Answers for "javascript map replace key value"

0

javascript map replace key value

function mapReplace(map){
const x = new Map()
for (const [key, value] of map) {
  x.set(value, key)
}    
return x
}
Posted by: Guest on February-22-2021

Code answers related to "javascript map replace key value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language