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


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

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