[Solved] How to merge two array value matching by key value using Node.js/JavaScript

[ad_1]

var finalArr = [];
userData.map(item => {
  userData1.map(item1 => {
    if (item.email === item1.email) {
      finalArr.push(Object.assign(item, item1));
    }
  })
})

It’s not so difficult, you should think youself next time.

6

[ad_2]

solved How to merge two array value matching by key value using Node.js/JavaScript