Using moment.js, i need to build an array of the coming 12 months.- starting from the current month. e.g (assuming current month = December):
var monthsArray = [
"December",
"January",
"February",
"March",
[...]
"November"
]
My current solution only displays all 12 months of a year, without considering a "starting" month
var count = 0;
var months = [];
while (count < 12) months.push(moment().month(count++).format("MMMM"));
I guess the user month with
_private.userMonth = moment().format('MMMM');
How can i apply this to build my array of months?