• Return the lunar leap month in the year otherwise return 0

    Parameters

    • year: number

      lunar year

    Returns number

    Leap month in a lunar year

    // => 3
    getLeapMonth(2023)
    // => 0
    getLeapMonth(2024)