function minutesInMonth( month, year ) {
	var mins;
	var mon;
	var yr;
	var d;
	if ( arguments.length === 0 ) {
		// Note: cannot cache as application may cross over into a new year:
		d = new Date();
		mon = d.getMonth() + 1; // zero-based
		yr = d.getFullYear();
	} else if ( arguments.length === 1 ) {
		if ( isDateObject( month ) ) {
			d = month;
			mon = d.getMonth() + 1; // zero-based
			yr = d.getFullYear();
		} else if ( isString( month ) || isInteger( month ) ) {
			// Note: cannot cache as application may cross over into a new year:
			yr = currentYear();
			mon = month;
		} else {
			throw new TypeError( format( 'invalid argument. First argument must be either a string, integer, or Date object. Value: `%s`.', month ) );
		}
	} else {
		if ( !isString( month ) && !isInteger( month ) ) {
			throw new TypeError( format( 'invalid argument. First argument must be either a string or integer. Value: `%s`.', month ) );
		}
		if ( !isInteger( year ) ) {
			throw new TypeError( format( 'invalid argument. Second argument must be an integer. Value: `%s`.', year ) );
		}
		mon = month;
		yr = year;
	}
	if ( isInteger( mon ) && (mon < 1 || mon > 12) ) {
		throw new RangeError( format( 'invalid argument. An integer month value must be on the interval: [1, 12]. Value: `%s`.', mon ) );
	}
	mon = lowercase( mon.toString() );
	mins = MINUTES_IN_MONTH[ mon ];
	if ( mins === void 0 ) {
		throw new Error( format( 'invalid argument. Must provide a recognized month. Value: `%s`.', mon ) );
	}
	// Check if February during a leap year...
	if ( mins === 40320 && isLeapYear( yr ) ) {
		mins += MINUTES_IN_DAY;
	}
	return mins;
}
Returns the number of minutes in a month.

@param {(string|Date|integer)} [month] - month
@param {integer} [year] - year
@throws {TypeError} first argument must be either a string, integer, or `Date` object
@throws {Error} must provide a recognized month
@throws {RangeError} an integer month argument must be on the interval `[1,12]`
@throws {TypeError} second argument must be an integer
@returns {integer} minutes in a month

@example
var num = minutesInMonth();
// returns <number>

@example
var num = minutesInMonth( 2 );
// returns <number>

@example
var num = minutesInMonth( 2, 2016 );
// returns 41760

@example
var num = minutesInMonth( 2, 2017 );
// returns 40320