moment-business-days
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -84,5 +84,5 @@ 'use strict'; | ||
moment.fn.monthNaturalDays = function() { | ||
moment.fn.monthNaturalDays = function(fromToday) { | ||
var me = this.clone(); | ||
var day = me.clone().startOf('month'); | ||
var day = fromToday ? me.clone() : me.clone().startOf('month'); | ||
var end = me.clone().endOf('month'); | ||
@@ -89,0 +89,0 @@ var daysArr = []; |
{ | ||
"name": "moment-business-days", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "MomentJS pluin to use business days ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10547