Merge two javascript maps by comparing their keys

后端 未结 0 473
面向向阳花
面向向阳花 2021-01-15 17:45

i want to merge two Maps:

const map1 = new Map([
  [1, {title: \'t1\', name: \'nam1\'}],
  [2, {title: \'t2\', name: \'nam2\'}]
])



const map2 = new Map([
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题