I have the following code, which returns the number of days in a month:

```
daysInMonth(month:number, year:number) {
            return new Date(year, month, 0).getDate();
}

```

Let's say this gives me `31`. Now, in my html, I want to create a `dropdown` element with all the days in the month, listed out in order. So, my dropdown would consist of:

`1,2,3,4,5,6,7,8,9,10,11.....` All the way to `31`.

I need to build this object dynamically since the days in the month will change based on the month.

What's the most efficient way to do that?