I want to create an array with a uniqueDate value in my array. So if I have this array:

```
const arr = [
      {
        name: "Edward",
        date: "24 March"
      },
      {
        name: "Banana",
        date: "12 March"
      },
      {
        name: "Edward",
        date: "23 March"
      },
      {
        name: "Edward",
        date: "23 March"
      }
    ]

```

... then the output will be something like:

```
[
    {name:"Edward", uniqueDate: 2, totalSubmit: 3},   
    {nama: "Banana",uniqueDate: 1, totalSubmit: 1}
]

```

The first unique date is 2 because we have 2 different dates: 24 March and 23 March. I've tried to use `reduce`, but it has some issues.