UNPKG

310 BJavaScriptView Raw
1let getPreviousMonthMemoKey;
2let getPreviousMonthMemoValue;
3
4export default function getPreviousMonthMemoLast(month) {
5 if (month !== getPreviousMonthMemoKey) {
6 getPreviousMonthMemoKey = month;
7 getPreviousMonthMemoValue = month.clone().subtract(1, 'month');
8 }
9
10 return getPreviousMonthMemoValue;
11}