I have this three JavaScript arrays:

```
  var arr1 = [
    {id:32, "isNormal":true},
    {id:4,  "isNormal":false}},
    {id:2,  "isNormal":false},
    {id:35, "isNormal":true},
    {id:44, "isNormal":false}]

  var arr2 = [
    {id:32, "isNormal":false},
    {id:4,  "isNormal":false}},
    {id:44, "isNormal":true},
    {id:35, "isNormal":true},
    {id:2,  "isNormal":true}]

var arrResult = [
   {externalId:32, startDate:currentDateTime, endDate:"null", "isNormal":false},
   {externalId:4,  startDate:"null", endDate:"null", "isNormal":false}},
   {externalId:44, startDate:"null", endDate:"currentDateTime", "isNormal":true},
   {externalId:35, startDate:"null", endDate:"null", "isNormal":true},
   {externalId:2, startDate:"null", endDate:"currentDateTime", "isNormal":false}]

```

The arrays have same id.

I need to check isNormal property of the object in arr1 with appropriate property of the object (with same id) in arr2,

* if arr1.isNormal = true and arr2.isNormal = false write to arrResult.startDate current date and time,
* if arr1.isNormal = false and arr2.isNormal = true write to arrResult.endDate current date and time,
* otherwise do nothing.

Here the array result corresponding to arr1 and arr2. What is elegant way to implement this?