Comparison of specific value of object with other object when response is in Array

Response:

[
    {
        "id": 9773415366701
    },
    {
        "id": 9497621921837
    },
    {
        "id": 9454351810605
    },
    {
        "id": 9445913264173
    },
    {
        "id": 9306823655469
    },
    {
        "id": 9075760300077
    },
    {
        "id": 9075020693549
    }
]

Hi Team,
Basically I want to verify that All objects value of id field should unique with others values in array.
Example: Means want to verify that first id should be not equal with second id and so on.

Is there any direct assertion?, Loop probably helpful here?

P.S. Array can be any size.

What have you tried so far?

Is there anything here that could help:

Thanks @danny-dainton to look into more details.
I tried below codes and got worked

pm.test("Yhjh", function () {
    var myArray = pm.response.json();
    var unique = myArray.filter((v, i, a) => a.indexOf(v) !== i);

     console.log(unique);
    pm.expect(unique).to.eql([]);
});

Any idea if there is any direct assertion for the same

Maybe something like this which will give a true/false if any duplicates are found:

// creates a new array of just the id values
let arrayOfIds = pm.response.json().map(obj => obj.id);

// a function that uses the `Set` constructor which can only contain unique values
// compares the size of the new `Set` array against the length of the `arrayOfIds` array
function anyDuplicates(array) {
  return new Set(array).size !== array.length
}

// returns true if duplicates are found 
console.log(anyDuplicates(arrayOfIds))

Thanks @danny-dainton.
Just a quick question, what would be the best approach to verify a unique specific value from json response?
e.g. below response contains few id values, Now want to make sure a specific id value (9075020693549) should come in response and it should be unique, with no duplication.

[
    {
        "id": 9773415366701
    },
    {
        "id": 9075760300077
    },
    {
        "id": 9075020693549
    }
]

I used the below code:

pm.test("loggedin coach", function () {
    var jsonData = pm.response.json();
    let arrayOfId = jsonData.map(obj => obj.id);
     console.log(arrayOfId);
    pm.expect(9075020693549).to.oneOf(arrayOfId);
});

Any suggestions please