@tremendous/help
    Preparing search index...

    Function monthYearFromString

    • Separates month and year from a string in the format MM/YYYY.

      Parameters

      • string: string

        A string in the format MM/YYYY.

      Returns { month: string; year: string }

      • An object containing the month and year.
      monthYearFromString("12/2021"); // { month: "12", year: "2021" }
      monthYearFromString("2021-12"); // { month: "", year: "" }