* @summary List all the Saturdays and Sundays in the given month.
5
*
6
* @description
7
* Get all the Saturdays and Sundays in the given month.
8
*
9
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10
*
11
* @param date - The given month
12
*
13
* @returns An array containing all the Saturdays and Sundays
14
*
15
* @example
16
* // Lists all Saturdays and Sundays in the given month
17
* const result = eachWeekendOfMonth(new Date(2022, 1, 1))