I have an `Object` `obj` as below:

```
const obj = {
Hostname: "abc.com"
Check1Status: "PASS"
Check2Status: "PASS"
Check3Status: "FAIL"
Check3ErrorHeading: "Reason for Check3"
Check3ErrorDetail: "Details for Check3"
Check4Status: "FAIL"
Check4ErrorHeading: "Reason for Check4"
Check4ErrorDetail: "Details for Check4"
TotalExecutions: 5
};

```

1. I want to capture `TotalExecutions`
2. I want to exclude all the key value pairs which have `PASS`
as the value.
3. I want to exclude the key `Hostname` and it value.
4. I only want to capture the `checks` which have `Status` as `FAIL`
such that the output looks as below:
`TotalExecutions:5,Check3:Reason for Check3:Details for Check3, Check4:Reason for Check4:Details for Check4`

The final output should be a `string`.
I have written the following code which is excluding `PASS` and including `TotalExecutions` and excluding `HostName` but not implementing `4`

```
            const result = Object.values(obj).map
            (el => Object.entries(el).filter(([key, value]) => value !== 'PASS' && key !== 'Hostname').reduce((acc, [key, value]) => ({
                ...acc,
                [key]: value
            }), {}));

```