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