My initial array is like this:
preData = [
['APP_NOT_RUNNING', 0],
['FALLBACK', 0],
['IDLE', 0],
['OUTOFSERVICE', 0]
];
The array with values is like this:
preData = [
['APP_NOT_RUNNING', 2],
['IDLE', 3],
];
I would like to update the values of first array from the second one, the result:
finalData= [
['APP_NOT_RUNNING', 2],
['FALLBACK', 0],
['IDLE', 3],
['OUTOFSERVICE', 0]
];
I would appreciate any help