"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Check if on same month (ignore day and time)
*
* @author Sandy Lau https://github.com/sandylau333
*
* @param a
* @param b
* @category dateTime
* @module isSameMonth
*/
var isSameMonth = function (a, b) {
var aMonth = new Date(a.getFullYear(), a.getMonth());
var bMonth = new Date(b.getFullYear(), b.getMonth());
return aMonth.valueOf() === bMonth.valueOf();
};
exports.default = isSameMonth;
Source