my arrays :
const create = [{"month":"Jan","createCount":"4"},{"month":"Feb","createCount":"5"}];
const close = [{"month":"Jan","closeCount":"3"},{"month":"Feb","closeCount":"5"}];
I need to merge the arrays objects to comparing month field.
I want my result like this...
const data = [{"month":"Jan","createCount":"4","closeCount":"3"},{"month":"Feb","createCount":"5","closeCount":"5"}];
I tried this code:
const data = [...create, ...close];
but this as merge the two array data only.
please give any solution to me!