I'm trying to get single object with different item based by the id from compared result of two array of objects.
Here's the case:
First Array
[
    {
        "id": "792657571767910421",
        "type": 0,
        "allow": "0",
        "deny": "0"
    },
    {
      "id": "1020443938668171294",
      "type": 0,
      "allow": "0",
      "deny": "377959221312"
    },
    {
      "id": "791708642813411358",
      "type": 0,
      "allow": "0",
      "deny": "0"
    }
]
Second Array
[
    {
      "id": "792657571767910421",
      "type": 0,
      "allow": "1024",
      "deny": "0"
    },
    {
      "id": "1020443938668171294",
      "type": 0,
      "allow": "0",
      "deny": "377959221312"
    },
    {
      "id": "791708642813411358",
      "type": 0,
      "allow": "0",
      "deny": "0"
    },
]
Expected Output
[
    {
      "id": "792657571767910421",
      "type": 0,
      "allow": "1024",
      "deny": "0"
    },
]
Different value
// First array
{
    "allow": "0"
}
// Second array
{
    "allow": "1024"
}
Can anyone help me? Thank you.
 
    