const current = () => {
  const thisMonthDate = new Date();
  return {year: thisMonthDate.getFullYear(), month: thisMonthDate.getMonth() + 1};
};

const prior = () => {
  let buildLastMonthDateFrom = function (date) {
    let monthDate = new Date(date);
    monthDate.setMonth(monthDate.getMonth() - 1);
    return monthDate;
  };

  const lastMonthDate = buildLastMonthDateFrom(new Date());
  return {year: lastMonthDate.getFullYear(), month: lastMonthDate.getMonth() + 1};
};

export {current, prior};

@@ -220,16 +220,23 @@
    let m
+utableM
 onthDate
@@ -259,16 +259,23 @@
 );%0A    m
+utableM
 onthDate
@@ -285,16 +285,23 @@
 tMonth(m
+utableM
 onthDate
@@ -330,16 +330,23 @@
 return m
+utableM
 onthDate

make immutable Date clear