First Array contains the below array of elements
"Data": [
{
"ID": 1,
"Name": "XYZ",
"Driver": "Assigned",
}
{
"ID": 2,
"Name": "PQR",
"Driver": "UnAssigned",
}
Second Array is of different set of data
"Data": [
{
"Updated": "KLM",
"Date": "22/01/2020",
}
{
"Updated": "PQR",
"Date": "23/01/2020",
}
{
"Updated": "OOO",
"Date": "23/07/2020",
}
I want the final json as below
"Data": [
{
"ID": 1,
"Name": "XYZ",
"Driver": "Assigned",
"Updated": "KLM",
"Date": "22/01/2020",
}
{
"ID": 2,
"Name": "PQR",
"Date": "23/01/2020",
"Updated": "PQR",
"Date": "23/01/2020",
}
{
"ID": 2,
"Name": "PQR",
"Driver": "UnAssigned",
"Updated": "PQR",
"Date": "23/01/2020",
}
{
"ID": "",
"Name": "",
"Driver": "",
"Updated": "OOO",
"Date": "23/07/2020",
}
If both the arrays are of different lengths, the field should go as blank like the last one. How can we do in reactjs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…