Checks if a given lunar date is valid. A lunar date consists of a year, month, and day, and optionally a leap month
flag. This function ensures that the lunar date is an object with valid year, month, and day values, and that the
date falls within the valid lunar calendar range.
Parameters
lunar: unknown
The lunar date to check. It should be an object with properties year, month, day, and
optionally isLeapMonth.
Checks if a given lunar date is valid. A lunar date consists of a year, month, and day, and optionally a leap month flag. This function ensures that the lunar date is an object with valid year, month, and day values, and that the date falls within the valid lunar calendar range.