I have a list :
[{item:'apple',quantity:5},{item:'banana',quantity:3}]
I also have another list :
[{category:'fruit',id:3435},{category:'vegetable',id:3}]
My goal is to create :
[{newItem:'banana',newId:3}]
I am looking for a solution in JavaScript using the lodash
library.